Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add examples to Adaboost estimators #13373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 4, 2019

Conversation

chkoar
Copy link
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
Member

tests failing

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

chkoar commented Mar 2, 2019

For some reason azure pipelines didn't run

@adrinjalali
Copy link
Member

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

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