我试图获得关于kats多变量时间序列模型预测运行的运行教程,但是在运行m.predict时遇到了一个错误
下面的代码也可以在他们的教程页上找到。
try: # If running on Jupyter
multi_df = pd.read_csv("../kats/data/multi_ts.csv")
except FileNotFoundError: # If running on colab
multi_df = pd.read_csv("multi_ts.csv")
multi_ts = TimeSeriesData(multi_df, time_col_name='time')
# Use VAR model to forecast this multivariate time series
from kats.models.var import VARModel, VARParams
params = VARParams()
m = VARModel(multi_ts, params)
m.fit()
fcst = m.predict(steps=90) # this line yields the error
m.plot()
plt.show()他们在kats github上已经出现了有关此错误的问题,但尚未得到评论。
发布于 2022-03-27 07:13:32
Y是endog的弃用别名,将在0.11.0版本中删除。
您可以使用,m.forecast(m.endog,steps=90)。
exog.html
https://stackoverflow.com/questions/70601353
复制相似问题