zemlyansky / arima

ARIMA, SARIMA, SARIMAX and AutoARIMA models for time series analysis and forecasting in the browser and Node.js
https://www.npmjs.com/arima
76 stars 18 forks source link

Any way to serialize or rehydrate without retraining? #15

Open jtlapp opened 2 years ago

jtlapp commented 2 years ago

I need to be able to do the following:

  1. Train on one computer and upload the model for prediction on a server.
  2. Repeatedly apply a model to different circumstances.

I think I could solve both problems if there were a way to serialize and deserialize ARIMA instances.

I experimented with serializing ARIMA instances via JSON.stringify and deserializing them into stub ARIMA instances, but the resulting predictions are wildly different, so that didn't work.