arima icon indicating copy to clipboard operation
arima copied to clipboard

Need fix for broken prediction

Open muazhari opened this issue 3 years ago • 2 comments

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 avatar Mar 08 '21 14:03 muazhari

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.

ghost avatar Dec 03 '21 14:12 ghost

Yep, it seems that there's some issue with the AutoARIMA mode. Can be related to https://github.com/rafat/ctsa/issues/5

zemlyansky avatar Dec 13 '21 12:12 zemlyansky