auto_ts:如何更改auto_ts中的预测日期范围
我正在尝试使用 auto_ts 库来预测值,我传递的输入是一个日期格式,每个月的第一个日期如 2021-11-01 ,而预测值每个月的最后日期都有一个日期范围,例如 2021-11-30 。
有没有办法将预测值的日期范围更改为每个月的第一个日期?
I am trying to forecast values using auto_ts library, the input i am passing is a date format which has first date of every month like 2021-11-01 whereas the forecasted values have a date range as last date of every month like 2021-11-30.
Is there a way to change the date range of predicted values to first date of every month?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您看到的问题是因为自动使用
pandas
dataframe来推断频率。PANDAS
默认情况下确实每月间距的每月结束。要开始一个月,您可以使用频率='MS'
获得月点:The issue you are seeing is because autots uses the
pandas
dataframe to infer the frequency.pandas
by default does end-of-month for its monthly spacing. To get start of month, you can usefrequency ='MS'
to get start-of-month: