All Projects → bbalasub1 → Glmnet_python

bbalasub1 / Glmnet_python

Licence: gpl-3.0

Projects that are alternatives of or similar to Glmnet python

Book
This book serves as an introduction to a whole new way of thinking systematically about geographic data, using geographical analysis and computation to unlock new insights hidden within data.
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Starnet
StarNet
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Notes On Statistical Learning Methods
李航《统计学习方法》中机器学习模型的LaTeX公式笔记
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Quantum Native Dojo
量子コンピュータ初学者のための自習教材
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Ssd kerasv2
BetterNetWork4SSD
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
All4nlp
All For NLP, especially Chinese.
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
19 udacity dsa
Data Structures & Algorithms Nanodegree Program from Udacity
Stars: ✭ 140 (+0%)
Mutual labels:  jupyter-notebook
Image Caption Generator
[DEPRECATED] A Neural Network based generative model for captioning images using Tensorflow
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
In simple english
Small projects to clarify big concepts
Stars: ✭ 140 (+0%)
Mutual labels:  jupyter-notebook
Raspberryturk
The Raspberry Turk is a robot that can play chess—it's entirely open source, based on Raspberry Pi, and inspired by the 18th century chess playing machine, the Mechanical Turk.
Stars: ✭ 140 (+0%)
Mutual labels:  jupyter-notebook
Agem
Official implementation of the Averaged Gradient Episodic Memory (A-GEM) in Tensorflow
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Ccf Bdci Automotive Field Asc 2018
CCF-BDCI 2018年汽车行业用户观点主题及情感识别挑战赛 第6名解决方案
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Pymatch
Stars: ✭ 139 (-0.71%)
Mutual labels:  jupyter-notebook
Stanford cs231n 2019
Solutions and comments to assignments for 2019 Stanford's course on convolutional neural networks
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Data Ppf.github.io
website
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Swift4tf
A set of notebooks explaining swift for tensorflow optimized to run in Google Collaboratory.
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Kaggle Learning
Repository for sharing the knowledge from the learning path of Kaggle Learning. All contributions welcome :).
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Hrv
A Python package for heart rate variability analysis
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Bob Emploi
An application that provides personalized career and job search advice to jobseekers.
Stars: ✭ 141 (+0.71%)
Mutual labels:  jupyter-notebook
Www.julialang.org
Julia Project website
Stars: ✭ 140 (+0%)
Mutual labels:  jupyter-notebook

Glmnet for python

PyPI version GPL Licence Documentation Status

Install

Using pip (recommended)

pip install glmnet_py

Complied from source

git clone https://github.com/bbalasub1/glmnet_python.git
cd glmnet_python
python setup.py install
(use python setup.py install --user if you get a permission denied message. This does a local install for the user)

Requirement: Python 3, Linux

Currently, the checked-in version of GLMnet.so is compiled for the following config:

Linux: Linux version 2.6.32-573.26.1.el6.x86_64 (gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) ) OS: CentOS 6.7 (Final) Hardware: 8-core Intel(R) Core(TM) i7-2630QM gfortran: version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)

Documentation

Read the Docs: Documentation Status or click me

Usage

import glmnet_python
from glmnet import glmnet

For more examples, see iPython notebook

Introduction

This is a python version of the popular glmnet library (beta release). Glmnet fits the entire lasso or elastic-net regularization path for linear regression, logistic and multinomial regression models, poisson regression and the cox model.

The underlying fortran codes are the same as the R version, and uses a cyclical path-wise coordinate descent algorithm as described in the papers linked below.

Currently, glmnet library methods for gaussian, multi-variate gaussian, binomial, multinomial, poisson and cox models are implemented for both normal and sparse matrices.

Additionally, cross-validation is also implemented for gaussian, multivariate gaussian, binomial, multinomial and poisson models. CV for cox models is yet to be implemented.

CV can be done in both serial and parallel manner. Parallellization is done using multiprocessing and joblib libraries.

During installation, the fortran code is compiled in the local machine using gfortran, and is called by the python code.

The best starting point to use this library is to start with the Jupyter notebooks in the test directory (iPython notebook). Detailed explanations of function calls and parameter values along with plenty of examples are provided there to get you started.

Authors:

Algorithm was designed by Jerome Friedman, Trevor Hastie and Rob Tibshirani. Fortran code was written by Jerome Friedman. R wrapper (from which the MATLAB wrapper was adapted) was written by Trevor Hastie.

The original MATLAB wrapper was written by Hui Jiang (14 Jul 2009), and was updated and is maintained by Junyang Qian (30 Aug 2013).

This python wrapper (which was adapted from the MATLAB and R wrappers) was originally written by B. J. Balakumar (5 Sep 2016).

List of other contributors along with a summary of their contributions is included in the contributors.dat file.

B. J. Balakumar, [email protected] (Sep 5, 2016). Department of Statistics, Stanford University, Stanford, CA

REFERENCES:

  • Friedman, J., Hastie, T. and Tibshirani, R. (2008) Regularization Paths for Generalized Linear Models via Coordinate Descent, http://www.jstatsoft.org/v33/i01/ Journal of Statistical Software, Vol. 33(1), 1-22 Feb 2010

  • Simon, N., Friedman, J., Hastie, T., Tibshirani, R. (2011) Regularization Paths for Cox's Proportional Hazards Model via Coordinate Descent, http://www.jstatsoft.org/v39/i05/ Journal of Statistical Software, Vol. 39(5) 1-13

  • Tibshirani, Robert., Bien, J., Friedman, J.,Hastie, T.,Simon, N.,Taylor, J. and Tibshirani, Ryan. (2010) Strong Rules for Discarding Predictors in Lasso-type Problems, http://www-stat.stanford.edu/~tibs/ftp/strong.pdf Stanford Statistics Technical Report

License:

This software is released under GNU General Public License v3.0 or later.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].