-
Notifications
You must be signed in to change notification settings - Fork 68
Add BaggingClassifier and BaggingRegressor support #742
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
- It turns out that there's a long standing bug in SKLL where using meta-estimators like AdaBoost* that use a base estimator are unable to be used with `run_experiment` since their base estimator prevents the model parameters dictionary from being serialized to disk. Added code that replaces the base estimator object with a string before serializing. - Existing tests did not cover this scenario since they used those meta-estimators via the API and not via a configuration file. Added new tests that covered this scenario.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #742 +/- ##
=======================================
Coverage 95.19% 95.19%
=======================================
Files 29 29
Lines 3535 3538 +3
=======================================
+ Hits 3365 3368 +3
Misses 170 170
☔ View full report in Codecov by Sentry. |
Frost45
left a comment
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.
Testing it out locally!
Frost45
left a comment
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.
Tested it out with Titanic! Everything works as expected 🎉
Co-authored-by: Sanjna Kashyap <20379363+Frost45@users.noreply.github.com>
run_experimentsince their base estimator prevents the model parameters dictionary from being serialized to disk. Added code that replaces the base estimator object with a string before serializing.BaggingClassifierandBaggingRegressorEasiest way to review is to try out the new learners (along with different
estimatorfixed parameter values) in the California and Titanic examples.This PR closes #614.