-
Notifications
You must be signed in to change notification settings - Fork 314
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
MBM Surrogate: Clean up model fitting behavior and **kwargs usage #1882
Conversation
This pull request was exported from Phabricator. Differential Revision: D49707895 |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1882 +/- ##
==========================================
+ Coverage 94.60% 94.62% +0.01%
==========================================
Files 459 459
Lines 43771 43730 -41
==========================================
- Hits 41410 41378 -32
+ Misses 2361 2352 -9
☔ View full report in Codecov by Sentry. |
…cebook#1882) Summary: Kwargs: These were originally added to support passing around additional kwargs in subclasses that no-longer exist. They later silently took on the role of carrying the kwargs that gets passed down to model input constructors. The argument name has been updated with added docstring explaining what these do. These are now used to update `Surrogate.model_options` and passed to the input constructors from there. Model fitting clean up: We had a bunch of duplicate logic for constructing the models, left over from the merger of `Surrogate` & `ListSurrogate`, which led to several bugs in the past and made the code much harder to maintain and review. This diff deduplicates and simplifies the model fitting logic. Differential Revision: D49707895
a6b1361
to
c67d597
Compare
This pull request was exported from Phabricator. Differential Revision: D49707895 |
…cebook#1882) Summary: Kwargs: These were originally added to support passing around additional kwargs in subclasses that no-longer exist. They later silently took on the role of carrying the kwargs that gets passed down to model input constructors. The argument name has been updated with added docstring explaining what these do. These are now used to update `Surrogate.model_options` and passed to the input constructors from there. Model fitting clean up: We had a bunch of duplicate logic for constructing the models, left over from the merger of `Surrogate` & `ListSurrogate`, which led to several bugs in the past and made the code much harder to maintain and review. This diff deduplicates and simplifies the model fitting logic. Differential Revision: D49707895
c67d597
to
74f28ce
Compare
This pull request was exported from Phabricator. Differential Revision: D49707895 |
…cebook#1882) Summary: Kwargs: These were originally added to support passing around additional kwargs in subclasses that no-longer exist. They later silently took on the role of carrying the kwargs that gets passed down to model input constructors. The argument name has been updated with added docstring explaining what these do. These are now used to update `Surrogate.model_options` and passed to the input constructors from there. Model fitting clean up: We had a bunch of duplicate logic for constructing the models, left over from the merger of `Surrogate` & `ListSurrogate`, which led to several bugs in the past and made the code much harder to maintain and review. This diff deduplicates and simplifies the model fitting logic. Differential Revision: D49707895
74f28ce
to
b277048
Compare
This pull request was exported from Phabricator. Differential Revision: D49707895 |
b277048
to
7039fc7
Compare
…cebook#1882) Summary: Kwargs: These were originally added to support passing around additional kwargs in subclasses that no-longer exist. They later silently took on the role of carrying the kwargs that gets passed down to model input constructors. The argument name has been updated with added docstring explaining what these do. These are now used to update `Surrogate.model_options` and passed to the input constructors from there. Model fitting clean up: We had a bunch of duplicate logic for constructing the models, left over from the merger of `Surrogate` & `ListSurrogate`, which led to several bugs in the past and made the code much harder to maintain and review. This diff deduplicates and simplifies the model fitting logic. Differential Revision: D49707895
This pull request was exported from Phabricator. Differential Revision: D49707895 |
7039fc7
to
a1eed58
Compare
…cebook#1882) Summary: Kwargs: These were originally added to support passing around additional kwargs in subclasses that no-longer exist. They later silently took on the role of carrying the kwargs that gets passed down to model input constructors. The argument name has been updated with added docstring explaining what these do. These are now used to update `Surrogate.model_options` and passed to the input constructors from there. Model fitting clean up: We had a bunch of duplicate logic for constructing the models, left over from the merger of `Surrogate` & `ListSurrogate`, which led to several bugs in the past and made the code much harder to maintain and review. This diff deduplicates and simplifies the model fitting logic. Differential Revision: D49707895
This pull request was exported from Phabricator. Differential Revision: D49707895 |
…cebook#1882) Summary: Pull Request resolved: facebook#1882 Kwargs: These were originally added to support passing around additional kwargs in subclasses that no-longer exist. They later silently took on the role of carrying the kwargs that gets passed down to model input constructors. The argument name has been updated with added docstring explaining what these do. These are now used to update `Surrogate.model_options` and passed to the input constructors from there. Model fitting clean up: We had a bunch of duplicate logic for constructing the models, left over from the merger of `Surrogate` & `ListSurrogate`, which led to several bugs in the past and made the code much harder to maintain and review. This diff deduplicates and simplifies the model fitting logic. Differential Revision: https://internalfb.com/D49707895 fbshipit-source-id: c99838e7619dc120ccd280cde3ef8cd4e376cfe1
…cebook#1882) Summary: Pull Request resolved: facebook#1882 Kwargs: These were originally added to support passing around additional kwargs in subclasses that no-longer exist. They later silently took on the role of carrying the kwargs that gets passed down to model input constructors. The argument name has been updated with added docstring explaining what these do. These are now used to update `Surrogate.model_options` and passed to the input constructors from there. Model fitting clean up: We had a bunch of duplicate logic for constructing the models, left over from the merger of `Surrogate` & `ListSurrogate`, which led to several bugs in the past and made the code much harder to maintain and review. This diff deduplicates and simplifies the model fitting logic. Differential Revision: https://internalfb.com/D49707895 fbshipit-source-id: 7dc375023b37a17468682e0bf602949a25063ff3
…cebook#1882) Summary: Kwargs: These were originally added to support passing around additional kwargs in subclasses that no-longer exist. They later silently took on the role of carrying the kwargs that gets passed down to model input constructors. The argument name has been updated with added docstring explaining what these do. These are now used to update `Surrogate.model_options` and passed to the input constructors from there. Model fitting clean up: We had a bunch of duplicate logic for constructing the models, left over from the merger of `Surrogate` & `ListSurrogate`, which led to several bugs in the past and made the code much harder to maintain and review. This diff deduplicates and simplifies the model fitting logic. Reviewed By: esantorella Differential Revision: D49707895
a1eed58
to
31f5f34
Compare
This pull request was exported from Phabricator. Differential Revision: D49707895 |
This pull request has been merged in 63fdfd8. |
Summary:
Kwargs: These were originally added to support passing around additional kwargs in subclasses that no-longer exist. They later silently took on the role of carrying the kwargs that gets passed down to model input constructors. The argument name has been updated with added docstring explaining what these do. These are now used to update
Surrogate.model_options
and passed to the input constructors from there.Model fitting clean up: We had a bunch of duplicate logic for constructing the models, left over from the merger of
Surrogate
&ListSurrogate
, which led to several bugs in the past and made the code much harder to maintain and review. This diff deduplicates and simplifies the model fitting logic.Differential Revision: D49707895