-
Notifications
You must be signed in to change notification settings - Fork 752
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
Remove creation of ragged sequences in MultivariateGrouper
#2671
Merged
Conversation
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
cc @kashif |
LGTM! I will test it out on monday |
@abdulfatir if this is backwards compatible, could you label it for v0.11 and v0.12 backport? |
abdulfatir
added
pending v0.11.x backport
This contains a fix to be backported to the v0.11.x branch
pending v0.12.x backport
This contains a fix to be backported to the v0.12.x branch
labels
Feb 20, 2023
lostella
approved these changes
Feb 20, 2023
Merged
Merged
lostella
added a commit
that referenced
this pull request
Feb 20, 2023
* Faster index building in PandasDataset (#2663) * Speed up `PandasDataset.from_long_dataframe` (#2665) * Fix `DateSplitter` when split date is before start (#2670) * Remove creation of ragged sequences in MultivariateGrouper (#2671) Co-authored-by: Abdul Fatir Ansari <ansarnd@amazon.com> Co-authored-by: Lorenzo Stella <stellalo@amazon.com> --------- Co-authored-by: Huibin Shen <icdishb@gmail.com> Co-authored-by: Gerald Woo <woogerald@yahoo.com.sg> Co-authored-by: Abdul Fatir <Abdulfatirs@gmail.com> Co-authored-by: Abdul Fatir Ansari <ansarnd@amazon.com>
lostella
added a commit
that referenced
this pull request
Feb 20, 2023
* Delay instantiation of `ScipyStudentT` object (#2660) * Faster index building in PandasDataset (#2663) * Speed up `PandasDataset.from_long_dataframe` (#2665) * Fix r-forecast doc strings (#2669) Co-authored-by: Abdul Fatir Ansari <ansarnd@amazon.com> Co-authored-by: Pedro Mercado <34275963+melopeo@users.noreply.github.com> * Fix `DateSplitter` when split date is before start (#2670) * Remove creation of ragged sequences in MultivariateGrouper (#2671) Co-authored-by: Abdul Fatir Ansari <ansarnd@amazon.com> Co-authored-by: Lorenzo Stella <stellalo@amazon.com> --------- Co-authored-by: Gerald Woo <woogerald@yahoo.com.sg> Co-authored-by: Huibin Shen <icdishb@gmail.com> Co-authored-by: Abdul Fatir <Abdulfatirs@gmail.com> Co-authored-by: Abdul Fatir Ansari <ansarnd@amazon.com> Co-authored-by: Pedro Mercado <34275963+melopeo@users.noreply.github.com>
lostella
removed
pending v0.11.x backport
This contains a fix to be backported to the v0.11.x branch
pending v0.12.x backport
This contains a fix to be backported to the v0.12.x branch
labels
Feb 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available: #2612
Description of changes:
Latest numpy versions raise an error when ragged sequences are passed to
np.array
. An array of ragged sequences is generally not a good idea anyway. This PR fixes theMultivariateGrouper
by sidestepping the creation of a ragged array. Instead, a list is used, which is batched based on the number of evaluation dates. The sublists are then stacked to create multivariate time series.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup