Skip to content

DOC Add examples to linear_model.TweedieRegressor#17516

Merged
thomasjpfan merged 2 commits intoscikit-learn:masterfrom
nuka137:doc-linear-model-2
Jun 7, 2020
Merged

DOC Add examples to linear_model.TweedieRegressor#17516
thomasjpfan merged 2 commits intoscikit-learn:masterfrom
nuka137:doc-linear-model-2

Conversation

@nuka137
Copy link
Copy Markdown
Contributor

@nuka137 nuka137 commented Jun 7, 2020

Reference Issues/PRs

Relates to #3846

What does this implement/fix? Explain your changes.

Add example to linear_model.TweedieRegressor.

Examples
----------
>>> from sklearn import linear_model
>>> clf = linear_model.TweedieRegressor(alpha=0)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the default alpha.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Fixed it.

Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @nuka137 !

LGTM

@thomasjpfan thomasjpfan merged commit b898f25 into scikit-learn:master Jun 7, 2020
viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 2020
* Add examples to linear_model.TweedieRegressor

* Address review
jayzed82 pushed a commit to jayzed82/scikit-learn that referenced this pull request Oct 22, 2020
* Add examples to linear_model.TweedieRegressor

* Address review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants