https://github.com/facebook/prophet/issues/725
import pickle
pkl_path = "path/to/save/Prophet.pkl"
with open(pkl_path, "wb") as f:
# Pickle the 'Prophet' model using the highest protocol available.
pickle.dump(m, f)
# save the dataframe
forecast.to_pickle("path/to/data/forecast.pkl")
print("*** Data Saved ***")
Then to load them again
# read the Prophet model object
with open(pkl_path, 'rb') as f:
m = pickle.load(f)
fcast = pd.read_pickle("path/to/data/forecast.pkl")
'개발 > ML+ Data Science' 카테고리의 다른 글
https://experiments.withgoogle.com 구글에 아이디어 내기 (0) | 2019.10.18 |
---|---|
fillna ffill bfill (0) | 2019.10.16 |
ARIMA모델 저장하고 불러오기 (0) | 2019.10.14 |
[시계열] 기초지식 (0) | 2019.10.13 |
시계열 기초 (데이터 사이언스 스쿨) (0) | 2019.10.12 |