Skip to content

Issue with forecaster.update on multi indexed data frame #5833

Answered by yarnabrina
ManuB68 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ManuB68, in your example, y_test has only 1 row for each patient (coming from test_size=1). That's small and less that 3 which pandas wants for frequency interpretation. sktime fits the model separately for each patient (for each of the lowest level of hierarchy), so it's 1 and not the shape of entire y_test.

I also use the similar format for my own office work, hundreds of series identifiers (e.g. store number), and update works. If you find a specific example where it works normally but just adding multiindex causes failure, please provide a minimal reproducible example with dummy values in the issue #5853.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@ManuB68
Comment options

@fkiraly
Comment options

Comment options

You must be logged in to vote
3 replies
@ManuB68
Comment options

@yarnabrina
Comment options

Answer selected by yarnabrina
@ManuB68
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants