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

KeyError in dictionary for pipeline transformation on new data for single series #4295

Open
remyogasawara opened this issue Aug 30, 2023 · 0 comments

Comments

@remyogasawara
Copy link
Collaborator

After extending the STLDecomposer to support multiseries and changing the class variables to dictionaries, there was an error in pipeline_tests/test_pipeline_utils.py where the keys of the series do not match for single series. Currently, we access the values by casting it as a list and then indexing, but it should be further investigated to simplify the code block.

if len(y.columns) > 1:
    seasonality = self.seasonalities[id]
    trend = self.trends[id]
    residual = self.residuals[id]
    period = self.periods[id]
else:
    seasonality = list(self.seasonalities.values())[0]
    trend = list(self.trends.values())[0]
    residual = list(self.residuals.values())[0]
    period = list(self.periods.values())[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant