Skip to content

Add examples to Adaboost estimators - #13373

Merged
qinhanmin2014 merged 13 commits into
scikit-learn:masterfrom
chkoar:adaboost_examples
Mar 4, 2019
Merged

qinhanmin2014 merged 13 commits into
scikit-learn:masterfrom
chkoar:adaboost_examples

Conversation

@chkoar

@chkoar chkoar commented Mar 2, 2019

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

#3846

What does this implement/fix? Explain your changes.

Solves part of the issue #3846 about missing examples from the class docs.

@adrinjalali

Copy link
Copy Markdown
Member

tests failing

@chkoar

chkoar commented Mar 2, 2019

Copy link
Copy Markdown
Contributor Author

@adrinjalali fixed

Comment thread sklearn/ensemble/weight_boosting.py Outdated
>>> regr.fit(X, y) # doctest: +NORMALIZE_WHITESPACE
AdaBoostRegressor(base_estimator=None, learning_rate=1.0, loss='linear',
n_estimators=100, random_state=0)
>>> print(regr.feature_importances_)

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.

please use # doctest: +ELLIPSIS here and keep all the following floating points to max 4 digits. This level of precision causes us headaches when we try to build for all the platforms we do. (i.e. 0.27885832 -> 0.2788...)

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.

That might exists in a bunch of places

Comment thread sklearn/ensemble/weight_boosting.py Resolved
@chkoar

chkoar commented Mar 2, 2019

Copy link
Copy Markdown
Contributor Author

For some reason azure pipelines didn't run

@adrinjalali

Copy link
Copy Markdown
Member

@thomasjpfan do you know why Azure CI hasn't run this PR?

@adrinjalali adrinjalali left a comment

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.

Azure CI hasn't run for the last commit, aside from nitpick, LGTM, thanks @chkoar

Comment thread sklearn/ensemble/weight_boosting.py Resolved
Comment thread sklearn/ensemble/weight_boosting.py Resolved
Comment thread sklearn/ensemble/weight_boosting.py Resolved
Comment thread sklearn/ensemble/weight_boosting.py Resolved
chkoar added 2 commits March 4, 2019 15:28
Comment thread sklearn/ensemble/weight_boosting.py Resolved
Comment thread sklearn/ensemble/weight_boosting.py Resolved
@qinhanmin2014

Copy link
Copy Markdown
Member

flake8 error, otherwise LGTM

@qinhanmin2014
qinhanmin2014 merged commit 008106d into scikit-learn:master Mar 4, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants