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

Model updates #69

Closed
pablojadz opened this issue Jun 30, 2021 · 1 comment
Closed

Model updates #69

pablojadz opened this issue Jun 30, 2021 · 1 comment

Comments

@pablojadz
Copy link

Hi all,

thanks for a great package. Sorry to ask a question here (not necessarily and issue yet) but can't find the users group

I have a quick question, is it possible to update a Prophet model as new data arrives or is retraining from scratch the only alternative?

Say you have a df like this

from kats.models.prophet import ProphetModel, ProphetParams
from kats.consts import TimeSeriesData
import pandas as pd
import numpy as np

df = pd.DataFrame({"time": pd.date_range('2020-01-01', '2020-01-21'), "value": np.random.randn(21)})
ts = TimeSeriesData(df)

model = ProphetModel(ts, ProphetParams())
model.fit()

and latter on we add another datapoint to df as in

df = df.append({"time": pd.to_datetime('2020-01-22'), "value": 0}, ignore_index=True)

I'm assuming that it would be possible and efficient to just update the model

Thanks for reading

@michaelbrundage
Copy link
Contributor

Hi @pablojadz, sorry for the much-delayed response. Prophet doesn't support incremental training. See facebook/prophet#1565

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

2 participants