2010-09-01 01:14:28 +08:00
|
|
|
"""
|
2011-11-30 17:30:13 +08:00
|
|
|
The :mod:`sklearn.linear_model` module implements genelarized linear models. It
|
2011-12-16 00:24:53 +08:00
|
|
|
includes Ridge regression, Bayesian Regression, Lasso and Elastic Net
|
|
|
|
|
estimators computed with Least Angle Regression and coordinate descent. It also
|
|
|
|
|
implements Stochastic Gradient Descent related algorithms.
|
2010-09-01 01:14:28 +08:00
|
|
|
"""
|
|
|
|
|
|
2011-04-11 06:10:26 +08:00
|
|
|
# See http://scikit-learn.sourceforge.net/modules/sgd.html and
|
|
|
|
|
# http://scikit-learn.sourceforge.net/modules/linear_model.html for
|
|
|
|
|
# complete documentation.
|
|
|
|
|
|
2012-01-14 02:21:40 +08:00
|
|
|
from .base import LinearRegression
|
2010-12-03 22:33:42 +08:00
|
|
|
|
2010-09-10 00:31:17 +08:00
|
|
|
from .bayes import BayesianRidge, ARDRegression
|
2012-09-01 22:00:50 +08:00
|
|
|
from .least_angle import Lars, LassoLars, lars_path, LarsCV, LassoLarsCV, \
|
|
|
|
|
LassoLarsIC
|
2010-09-01 01:26:06 +08:00
|
|
|
from .coordinate_descent import Lasso, ElasticNet, LassoCV, ElasticNetCV, \
|
2012-08-02 19:52:17 +08:00
|
|
|
lasso_path, enet_path, MultiTaskLasso, \
|
|
|
|
|
MultiTaskElasticNet
|
2012-01-14 02:21:40 +08:00
|
|
|
from .sgd_fast import Hinge, Log, ModifiedHuber, SquaredLoss, Huber
|
2010-12-03 22:33:42 +08:00
|
|
|
from .stochastic_gradient import SGDClassifier, SGDRegressor
|
2011-06-28 15:41:27 +08:00
|
|
|
from .ridge import Ridge, RidgeCV, RidgeClassifier, RidgeClassifierCV, \
|
|
|
|
|
ridge_regression
|
2010-10-22 17:48:22 +08:00
|
|
|
from .logistic import LogisticRegression
|
2011-07-29 07:54:23 +08:00
|
|
|
from .omp import orthogonal_mp, orthogonal_mp_gram, OrthogonalMatchingPursuit
|
2012-01-29 01:34:12 +08:00
|
|
|
from .perceptron import Perceptron
|
2012-02-01 00:58:12 +08:00
|
|
|
from .randomized_l1 import RandomizedLasso, RandomizedLogisticRegression, \
|
2011-12-21 21:04:17 +08:00
|
|
|
lasso_stability_path
|
2012-10-12 17:22:11 +08:00
|
|
|
from .isotonic_regression_ import IsotonicRegression, isotonic_regression
|
2012-08-24 05:51:37 +08:00
|
|
|
|
|
|
|
|
__all__ = ['ARDRegression',
|
|
|
|
|
'BayesianRidge',
|
|
|
|
|
'ElasticNet',
|
|
|
|
|
'ElasticNetCV',
|
|
|
|
|
'Hinge',
|
|
|
|
|
'Huber',
|
|
|
|
|
'Lars',
|
|
|
|
|
'LarsCV',
|
|
|
|
|
'Lasso',
|
|
|
|
|
'LassoCV',
|
|
|
|
|
'LassoLars',
|
|
|
|
|
'LassoLarsCV',
|
|
|
|
|
'LassoLarsIC',
|
|
|
|
|
'LinearRegression',
|
|
|
|
|
'Log',
|
|
|
|
|
'LogisticRegression',
|
|
|
|
|
'ModifiedHuber',
|
|
|
|
|
'MultiTaskElasticNet',
|
|
|
|
|
'MultiTaskLasso',
|
|
|
|
|
'OrthogonalMatchingPursuit',
|
|
|
|
|
'Perceptron',
|
|
|
|
|
'RandomizedLasso',
|
|
|
|
|
'RandomizedLogisticRegression',
|
|
|
|
|
'Ridge',
|
|
|
|
|
'RidgeCV',
|
|
|
|
|
'RidgeClassifier',
|
|
|
|
|
'RidgeClassifierCV',
|
|
|
|
|
'SGDClassifier',
|
|
|
|
|
'SGDRegressor',
|
|
|
|
|
'SquaredLoss',
|
|
|
|
|
'enet_path',
|
|
|
|
|
'lars_path',
|
|
|
|
|
'lasso_path',
|
|
|
|
|
'lasso_stability_path',
|
|
|
|
|
'orthogonal_mp',
|
|
|
|
|
'orthogonal_mp_gram',
|
2012-09-21 03:40:33 +08:00
|
|
|
'ridge_regression']
|