[英]VAR - Timeseries
I am building a timeseries prediction model using Vector Auto Regression Model.我正在使用向量自回归模型构建时间序列预测模型。 I am getting this error when I am trying to fit this model:
当我尝试拟合此模型时出现此错误:
x contains one or more constant columns. x 包含一个或多个常量列。 Column(s) 14, 15 are constant.
第 14、15 列是不变的。 Adding a constant with trend='c' is not allowed.
不允许添加带有 trend='c' 的常量。 I cannot drop these columns.
我不能删除这些列。 So is there any other solution to overcome this error ?
那么有没有其他解决方案来克服这个错误?
You can add trend='nc' in the model.fit() statement for VAR model.您可以在 VAR 模型的 model.fit() 语句中添加trend='nc'。 Something like this:
像这样的东西:
model.fit(trend='nc')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.