Skip to content

Add examples to Adaboost estimators #13373

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

Add examples to Adaboost estimators #13373
qinhanmin2014 merged 13 commits intoscikit-learn:masterfrom
chkoar:adaboost_examples

Conversation

@chkoar
Copy link
Copy Markdown
Contributor

@chkoar chkoar commented Mar 2, 2019

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
Copy link
Copy Markdown
Contributor Author

chkoar commented Mar 2, 2019

@adrinjalali fixed

>>> 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

@chkoar
Copy link
Copy Markdown
Contributor Author

chkoar commented Mar 2, 2019

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?

Copy link
Copy Markdown
Member

@adrinjalali adrinjalali left a comment

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

chkoar added 2 commits March 4, 2019 15:28
@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