-
Notifications
You must be signed in to change notification settings - Fork 337
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
Support forecasting in RAIInsights #1948
Conversation
…olbox into romanlutz/forecasting_responsibleai
Codecov Report
@@ Coverage Diff @@
## main #1948 +/- ##
==========================================
- Coverage 93.31% 93.06% -0.26%
==========================================
Files 105 48 -57
Lines 4985 1960 -3025
==========================================
- Hits 4652 1824 -2828
+ Misses 333 136 -197
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
…olbox into romanlutz/forecasting_responsibleai
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.
Posting some general comments
…olbox into romanlutz/forecasting_responsibleai
1 similar comment
…olbox into romanlutz/forecasting_responsibleai
Description
Notable changes:
ml_wrappers
dependency added. The forecasting model wrapper is currently part of this PR, but will move to ml-wrappers shortly. At that point, I'll remove it from here. The dependency is for the base wrapper class.RAIInsights
has fieldspredict_output
andpredict_proba_output
as well as the same withlarge_
as prefix. For forecasting, I needed something similar, although those particular names don't quite make sense. After exploring some options I set up corresponding fieldsforecast_output
andforecast_quantiles_output
(and thelarge_
ones for them). I couldn't find any usage of these outside ofRAIInsights
, so I prefixed everything with an underscore. I need confirmation that that's acceptable, though. The way their contents are calculated has also been streamlined to avoid 8 sets ofmodel.<method>(...)
after another.self._initialize_managers()
needed to be moved out of the base RAIInsights constructor because of an interdependency between the RAIInsights constructor and the validation method. The manager initialization requires a lot of the fields to be set, while the validation needs to occur for that to happen. On the other hand, the base constructor is the one that sets many of those fields, in particular the model. Since we have to wrap the model for forecasting this becomes impossible otherwise. It's now just at the end of the RAIInsights constructor.predict_proba
for classification is optional in this PR. I can keep it as mandatory since that's what we had so far, but that's technically excluding lots of perfectly fine classification models.forecasting_enabled
.About to be added:
responsibleai/tests
Checklist