-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/specify lags per component for RegressionModel (#1962)
* feat: updated lags sanity checks to accept dictionnary * fix: better management of corner cases during lags checks * fix: improved modularity * fix: simplified the logic a bit * feat: when generating lagged data, the values can be extracted using component-specific lags * feat: raise error if all the ts in target/past/future don't have the same number of components * feat: added support for component-specific lags in fit() and predict() * test: added tests and fix some bug accordingly * feat: component-wise lags support encoders, improved sanity checks * feat: possibility to declare default lags for all the not specified components, updated changelog * test: adding a test for the lagged data creation * fix: typo * fix: adressing review comments * Apply suggestions from code review Co-authored-by: Dennis Bader <[email protected]> * refactor: lags argument are converted to dict before running the type check and processing of the values * refactor: lags argument are converted to dict before running the type check and processing of the values * doc: improved documentation of the component-specific lags in tabularization * test: adding a test for the multivariate scenario * test: checking the appriopriate lags are extracted by the shap explainer * fix: shapexplainer extract the appropriate lags, updated the type hints * fix: passing covariates when trained on multiple series * fix: moved the series components consistency to create_lagged_data to limit iteration of the series * fix: improved the error message for components inconsistency, improve tests parametrization * fix: addressing reviewer comments * Apply suggestions from code review Co-authored-by: Dennis Bader <[email protected]> * test: checking that the name of the features is correctly generated when using dict to define the lags * fix: linting * fix: updating the error msg * fix: bug when the number of lags is different across components * fix: future lags in test --------- Co-authored-by: Dennis Bader <[email protected]>
- Loading branch information
1 parent
a6ceb5d
commit b3498bf
Showing
13 changed files
with
999 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.