-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Adaboost: Remove deprecated argument 'algorithm' #6910
Conversation
6c21763
to
0e2dd58
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6910 +/- ##
==========================================
+ Coverage 88.40% 88.41% +0.01%
==========================================
Files 326 326
Lines 71971 71974 +3
==========================================
+ Hits 63624 63636 +12
+ Misses 8347 8338 -9 |
ae27304
to
aa5b946
Compare
aa5b946
to
98b35f4
Compare
@@ -33,7 +33,7 @@ def test_adaboost(self): | |||
self.assertLess(ca, 0.99) | |||
|
|||
def test_adaboost_estimator(self): | |||
np.random.seed(0) | |||
np.random.seed(4) |
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.
If random seed is 0
, the result today is not the same as it was the last week. I discovered the 4
seems OK.
Scikit and pandas are moving targets. :(
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.
With the a new version of scikit-learn a default value of unsettable (within Orange) parameter will change (algorithm
).
Should we set the algorithm
parameter to SAMME
to assure the same behaviour as when the scikit 1.6 is released?
Orange/widgets/model/owadaboost.py
Outdated
@@ -46,36 +44,36 @@ class Error(OWBaseLearner.Error): | |||
|
|||
def add_main_layout(self): | |||
# this is part of init, pylint: disable=attribute-defined-outside-init | |||
box = gui.widgetBox(self.controlArea, "Parameters") | |||
grid = QFormLayout() | |||
box = gui.widgetBox(self.controlArea, box=True, orientation=grid) |
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.
box
variable is unused.
620e882
to
2220ca5
Compare
2220ca5
to
27a6c61
Compare
@VesnaT I put the
Why do we depend on unstable packages like pandas, sklearn and scipy? No better alternatives? Shame, really. Sorry, I'm pissed. I thought I'd be doing something useful today, not hunting another change in sklearn. |
Issue
In Sklearn 1.6, the only acceptable value for
AdaBoost's argument
algorithmis
SAMME`. In 1.8, the argument will be removed. (scikit-learn/scikit-learn#29997)Description of changes
4
so that results in scikit-learn=1.6.dev are the same as in earlier version(s).Includes