-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
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
Conversation
tests failing |
@adrinjalali fixed |
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_) |
There was a problem hiding this comment.
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...
)
There was a problem hiding this comment.
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
For some reason azure pipelines didn't run |
@thomasjpfan do you know why Azure CI hasn't run this PR? |
There was a problem hiding this 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
flake8 error, otherwise LGTM |
This reverts commit 0326353.
This reverts commit 0326353.
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.