-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Updates scikit-learn version to 0.22 #774
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
…bins in the GradientBostingClassifier. The by-the-book approach would be to generate new metalearning data, but the impact of not doing so, in this case, should be very small
…eature preprocessing
@@ -35,7 +35,7 @@ def test_default_configuration_regression(self): | |||
predictor = regressor.fit(X_train_trans, Y_train) | |||
predictions = predictor.predict(X_test_trans) | |||
accuracy = sklearn.metrics.mean_squared_error(predictions, Y_test) | |||
self.assertAlmostEqual(accuracy, 20.193400000000004, places=2) | |||
self.assertAlmostEqual(accuracy, 17.93480710955056, places=2) |
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.
The accuracies decreased. Couldn't figure out why, even after carefully inspecting the list of changes.
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.
The metric is actually misnamed. Could you please change the metric to error
? Then it's clear that it actually improved by going to 0.22.2.
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.
Ah! This is good news. :-)
I'll rename it.
res["default_boston_iterative_sparse"] = None | ||
res["default_diabetes"] = 0.32614416980439365 | ||
res["default_diabetes_iterative"] = None | ||
res["default_diabetes_sparse"] = 0.1298841767742679 | ||
res["default_diabetes_sparse"] = 0.12989753681434824 |
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.
Apparently ridge regression had a small bug when dealing with X sparse. It has been fixed in v0.22.
Model details here: scikit-learn/scikit-learn#13995
…efore the examples" This reverts commit 0bb7f2a.
Codecov Report
@@ Coverage Diff @@
## development #774 +/- ##
===============================================
- Coverage 85.37% 85.33% -0.05%
===============================================
Files 129 129
Lines 9204 9204
===============================================
- Hits 7858 7854 -4
- Misses 1346 1350 +4
Continue to review full report at Codecov.
|
* initial commit * fix some unittests * Edit configurations.csv to reflect the new value of the hyperpar max_bins in the GradientBostingClassifier. The by-the-book approach would be to generate new metalearning data, but the impact of not doing so, in this case, should be very small * fixed some more unittests * fixed some more unit tests * changed assert values of the unit test of the extra_tree_regression feature preprocessing * small variable renaming * trying to fix the CI issue that makes all tests be executed before the examples * Revert "trying to fix the CI issue that makes all tests be executed before the examples" This reverts commit 0bb7f2a. * try again to fix the CI issue * try again to fix the CI issue * trying to fix CI issue * corrects typo
No description provided.