Generalized Linear Models
Contents
Generalized Linear Models¶
|
Esimator for linear regression. |
|
Esimator for logistic regression. |
|
Esimator for poisson regression. |
Generalized linear models are a broad class of commonly used models. These implementations scale well out to large datasets either on a single machine or distributed cluster. They can be powered by a variety of optimization algorithms and use a variety of regularizers.
These follow the scikit-learn estimator API, and so can be dropped into existing routines like grid search and pipelines, but are implemented externally with new, scalable algorithms and so can consume distributed dask arrays and dataframes rather than just single-machine NumPy and Pandas arrays and dataframes.
Example¶
In [1]: from dask_ml.linear_model import LogisticRegression
In [2]: from dask_ml.datasets import make_classification
In [3]: X, y = make_classification(chunks=50)
In [4]: lr = LogisticRegression()
In [5]: lr.fit(X, y)
Out[5]: LogisticRegression()
Algorithms¶
|
Alternating Direction Method of Multipliers |
|
Michael Grant's implementation of Gradient Descent. |
|
L-BFGS solver using scipy.optimize implementation |
|
Newton's Method for Logistic Regression. |
|
Proximal Gradient Method |
Regularizers¶
|
Elastic net regularization. |
|
L1 regularization. |
|
L2 regularization. |
Abstract base class for regularization object. |