-
Notifications
You must be signed in to change notification settings - Fork 67
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
Update scikit-learn to 0.17.0 #288
Conversation
From `scikit-learn` 0.17.0 onwards, all scalers have the `scale_` attribute instead of the `std_` attribute. So, we need to patch up all old learners we load from files to be compatible with this.
Conflicts: .travis.yml
I also ran the unit tests with |
👍 Looks good to merge to me. |
I looked through the release notes for scikit-learn 0.17.0 and made any appropriate changes. But please take a look to see if I have missed anything. |
We should verify that we don't pass 1D arrays anywhere:
We should rely on this new attribute instead of doing the subclass check we do now:
I'd have to take a closer look if this is a problem or not for us:
Those are the only things that jumped out at me. |
We do not need to check `issubclass(..., RegressorMixin)` anymore.
Thanks @dan-blanchard!
|
Custom classifiers (regressors) need to inherit from both `BaseEstimator` as well as `ClassifierMixin` (`RegressorMixin`) in order for `_estimator_type` checks to work. Update documentation to make this explicit.
…-scikit-learn Update scikit-learn to 0.17.0
Can you push a minor version upgrade with this change if 1.2 is far off? Looking to try skll in my pipeline. Installing HEAD from git for now. Thanks!
|
@AlJohri actually we are planning to release 1.2 early next week :) |
👍 |
The only change that was required was to patch up learner objects from older versions of SKLL (and scikit-learn) that we might load using the
from_file()
class method.