Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion maint_tools/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

# List of modules ignored when checking for numpydoc validation.
DOCSTRING_IGNORE_LIST = [
"GammaRegressor",
"GaussianProcessRegressor",
"GaussianRandomProjection",
"GridSearchCV",
Expand Down
6 changes: 6 additions & 0 deletions sklearn/linear_model/_glm/glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,11 @@ class GammaRegressor(GeneralizedLinearRegressor):

.. versionadded:: 1.0

See Also
--------
PoissonRegressor : Generalized Linear Model with a Poisson distribution.
TweedieRegressor : Generalized Linear Model with a Tweedie distribution.

Examples
--------
>>> from sklearn import linear_model
Expand Down Expand Up @@ -648,6 +653,7 @@ def __init__(

@property
def family(self):
"""Return the family of the regressor."""
# Make this attribute read-only to avoid mis-uses e.g. in GridSearch.
return "gamma"

Expand Down