Skip to content
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

[ENH] allow inclusive/exclusive bounds in get_slice #4483

Merged
merged 2 commits into from Apr 21, 2023
Merged

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Apr 16, 2023

This PR adds two arguments to get_slice to allow exclusive/inclusive bounding at either and of the slice.

The default of the two new arguments leads to current behaviour, so no deprecation is necessary.

This will be useful as a utility, and also for fixing #3667

@fkiraly fkiraly added module:datatypes datatypes module: data containers, checkers & converters enhancement Adding new functionality labels Apr 16, 2023
@fkiraly fkiraly merged commit 9bae78d into main Apr 21, 2023
22 checks passed
@fkiraly fkiraly deleted the get_slice_inclusive branch April 21, 2023 20:39
fkiraly added a commit that referenced this pull request Apr 21, 2023
…s than forecasting horizon (#3667)

Fixes #3657.

The bug was caused by `pmdarima` models breaking when the `X` passed was
strictly larger than the indices in the forecasting horizon.

The example code in #3657 has been added as a test (with minor
generalization to cover more estimators).

In the future, we should probably also add test scenarios where `X` is
strictly larger than the forecasting horizon.

Depends on:
* #4474, which fixes a bug that was
masked by #3657
* #4483 for slicing `X`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding new functionality module:datatypes datatypes module: data containers, checkers & converters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant