解释Prophet每周和每年的季节性产量

解释Prophet每周和每年的季节性产量,r,time-series,fft,continuous-fourier,fourier-descriptors,R,Time Series,Fft,Continuous Fourier,Fourier Descriptors,我正在学习在R中使用prophet的教程 您可以在此处找到数据集: #R 图书馆(先知) 图书馆(dplyr) df% 变异(y=log(y)) 头部(df) ds y 1 2007-12-10 9.590761 2 2007-12-11 8.519590 3 2007-12-12 8.183677 4 2007-12-13 8.072467 5 2007-12-14 7.893572 6 2007-12-15 7.783641 df$ds@Nick Prophet predict()函数具有

我正在学习在R中使用
prophet
的教程

您可以在此处找到数据集:

#R
图书馆(先知)
图书馆(dplyr)
df%
变异(y=log(y))
头部(df)
ds y
1 2007-12-10 9.590761
2 2007-12-11 8.519590
3 2007-12-12 8.183677
4 2007-12-13 8.072467
5 2007-12-14 7.893572
6 2007-12-15 7.783641
df$ds@Nick
Prophet predict()函数具有以下语法:

temp_dataframe_to_store_prediction <- predict(model_name, new_dataframe_created)
此行使原始_y值保持不变。因此,为了解释最终结果,需要采用预测“y”值的指数。这将使预测达到原始规模。如果原始_y未转换,则无需采用指数形式

temp_dataframe_to_store_prediction <- predict(model_name, new_dataframe_created)
forecast <- predict(m, future)
 mutate(y = log(y))