8000 [WIP] Add Generalized Linear Models (#9405) · lorentzenchr/scikit-learn@33e2892 · GitHub
[go: up one dir, main page]

Skip to content

Commit 33e2892

Browse files
author
Christian Lorentzen
committed
[WIP] Add Generalized Linear Models (scikit-learn#9405)
* Fixed pep8 * Fixed flake8 * Rename GeneralizedLinearModel as GeneralizedLinearRegressor * Use of six.with_metaclass * PEP257: summary should be on same line as quotes * Docstring of class GeneralizedLinearRegressor: \ before mu * Arguments family and link accept strings * Use of ConvergenceWarning
1 parent 26246b9 commit 33e2892

File tree

3 files changed

+180
-139
lines changed

3 files changed

+180
-139
lines changed

sklearn/linear_model/__init__.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@
1818
lasso_path, enet_path, MultiTaskLasso,
1919
MultiTaskElasticNet, MultiTaskElasticNetCV,
2020
MultiTaskLassoCV)
21-
from .glm import (Link, IdentityLink, LogLink,
22-
ExponentialDispersionModel, TweedieDistribution,
23-
NormalDistribution, GaussianDistribution,
24-
PoissonDistribution, GammaDistribution,
25-
InverseGaussianDistribution, GeneralizedHyperbolicSecand,
26-
GeneralizedLinearModel)
21+
from .glm import (TweedieDistribution,
22+
GeneralizedLinearRegressor)
2723
from .huber import HuberRegressor
2824
from .sgd_fast import Hinge, Log, ModifiedHuber, SquaredLoss, Huber
2925
from .stochastic_gradient import SGDClassifier, SGDRegressor
@@ -47,7 +43,6 @@
4743
'BayesianRidge',
4844
'ElasticNet',
4945
'ElasticNetCV',
50-
'GeneralizedLinearModel',
5146
'Hinge',
5247
'Huber',
5348
'HuberRegressor',
@@ -90,4 +85,6 @@
9085
'orthogonal_mp',
9186
'orthogonal_mp_gram',
9287
'ridge_regression',
93-
'RANSACRegressor']
88+
'RANSACRegressor',
89+
'GeneralizedLinearRegressor',
90+
'TweedieDistribution']

0 commit comments

Comments
 (0)
0