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

Need fix for broken prediction #7

Open
muazhari opened this issue Mar 8, 2021 · 2 comments
Open

Need fix for broken prediction #7

muazhari opened this issue Mar 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@muazhari
Copy link

muazhari commented Mar 8, 2021

I tried to train/fit ARIMA & Auto ARIMA model with sin pattern datasets but it gives an invalid prediction, even in the first data point is invalid/not meaningful at all. can I get the solution or someone helps me out? I truly need this fix.

  const model = new ARIMA({
    auto: true,
    verbose: true,
  });

  model.train(trainDatasets);

  const [preds, errors] = model.predict(testLen);

below is the plotted data.

image

@muazhari muazhari changed the title Wrong/invalid prediction Need fix for broken prediction Mar 8, 2021
@ghost
Copy link

ghost commented Dec 3, 2021

It's issue with auto mode. The api in library is created based on sarimmax function. There are few bugs with the parameters estimation. For your usage you can use the arima with p:2, d:1, q:2 parameters. It should produce the meaningfull result if no, add the seasonal s parameter. You need to count it by your own. It could be 16 or 8. This is the only one solution for you currently.

@zemlyansky
Copy link
Owner

Yep, it seems that there's some issue with the AutoARIMA mode. Can be related to rafat/ctsa#5

@zemlyansky zemlyansky added the bug Something isn't working label Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants