Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Does NeuralProphet support multiple series datasets? #502

Closed
tszumowski opened this issue Dec 15, 2021 · 2 comments
Closed

Does NeuralProphet support multiple series datasets? #502

tszumowski opened this issue Dec 15, 2021 · 2 comments

Comments

@tszumowski
Copy link

tszumowski commented Dec 15, 2021

I understand from the README that it supports multiple covariates. And I understand I can make multiple models, one for each time series, from another GitHub issue here. Does it support multiple time series datasets, also known as multi-instance?

As a more concrete example, consider this OJ Sales Dataset. In this case, the data contains weekly sales of orange juice over 121 weeks. There are 3,991 stores included and three brands of orange juice per store so that 11,973 models can be trained.
I understand one can train independent models for each of the stores. However, I was interested in knowing if the package can take in data from multiple stores to learn correlations between them.

@mavarick
Copy link

According my experiences, the answer is no.

@ourownstory
Copy link
Owner

@tszumowski

Yes

If you are referring to 'global modelling' aka shared model weights across all stores.
The feature is not well documented yet, but should become clearer end of week. (See answer in #531)

No

If you are looking to do 'VAR' - explicitly correlating all stores and all products (likely not what you plan to do).

Yes

If you are looking for a way to regress one store's product sales onto the same or another stores product sales.

Here's what I would do:

  1. Create 3 dataset collections, with one product as the target series each.
    Within each collection, create one dataset for each store.
  • Add the store's other two items as lagged regressors (additional columns in dataframes)
  • Add the 1-10 closest stores' same item sales as additional lagged regressors (additional columns in dataframes)
  1. Train a global model for each of your 3 products. (I'd use local normalization once Local normalization for global modeling #507 is merged).
    Note: the input will need to be a dictionary containing each dataset as an entry.

  2. Now you can use the 3 models to predict all products at all stores.
    Note: the input will need to be a dictionary containing each dataset as an entry.

Please feel free to reach out to me on Slack if I do not answer fast enough here:
https://join.slack.com/t/neuralprophet/shared_invite/zt-sgme2rw3-3dCH3YJ_wgg01IXHoYaeCg

Repository owner locked and limited conversation to collaborators Feb 9, 2022
@ourownstory ourownstory converted this issue into discussion #535 Feb 9, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants