2024年Python最全时间序列预测的7种Python工具包,总有一款适合你(1)

本文介绍了Python中用于时间序列预测的7个工具包,包括Prophet、darts、AtsPy、kats和sktime。通过实例展示了如何加载数据、拟合模型、预测和可视化结果,帮助开发者选择适合的时间序列预测库。
摘要由CSDN通过智能技术生成

plt.legend()

plt.grid()

plt.show()

model = AutoTS(forecast_length=40, frequency=‘infer’, ensemble=‘simple’, drop_data_older_than_periods=100)

model = model.fit(df, date_col=‘Date’, value_col=’ Close/Last’, id_col=None)

这将运行数百个模型。你将在输出窗格中看到运行的各种模型。让我们看看模型如何预测:

prediction = model.predict()

forecast = prediction.forecast

print(“Stock Price Prediction of Apple”)

print(forecast)

temp_df[’ Close/Last’].plot(figsize=(15,8), title= ‘AAPL Stock Price’, fontsize=18, label=‘Train’)

forecast[’ Close/Last’].plot(figsize=(15,8), title= ‘AAPL Stock Price’, fontsize=18, label=‘Test’)

plt.legend()

plt.grid()

plt.show()

更多详细信息可以查看 Github: https://github.com/winedarksea/AutoTS

官网文档: https://winedarksea.github.io/AutoTS/build/html/source/tutorial.html

3、Prophet

Prophet是Facebook研究团队开发的知

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值