-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contribution towards #1737. IThis PR adds `TEST_FHS_TIMEDELTA` test cases to `sktime.forecasting.base.tests.test_fh.test_fh`. In order to pass the tests two changes were required in `ForecastingHorizon` itself: in `sktime.forecasting.base._fh.ForecastingHorizon._is_in_sample` and in `sktime.forecasting.base._fh.ForecastingHorizon._is_out_of_sample`. Both methods perform comparison with zero which in case of `pd.Timdelta` values should actually be `pd.Timedelta(0)`. Note that `sktime.forecasting.base._fh.ForecastingHorizon.to_indexer` returns `None` in the new timedelta case. I have no idea what this method should return in this case. Any suggestions are very much welcome.
- Loading branch information
Stanislav Khrapov
committed
Apr 4, 2022
1 parent
4b9003c
commit 2ec3327
Showing
6 changed files
with
106 additions
and
38 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
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