具有多个自变量的 Tensorflow 预测示例

Example for Tensorflow prediction with more than one independent variable

我正在寻找使用 Tensorflow 预测数据的示例。我已经尝试了一些代码,但我是 Tensorflow 和 Python 的初学者。 例如,我通过使用旧股票价格进行训练和测试来预测股票价格。现在我想整合的不仅仅是旧的股票价格,比如交易量,来预测未来的股票价格。 我该如何实施?

请阅读tensorflowtutorials and guide

你的问题很笼统,很难给出具体的建议。如果您是 python 的初学者,我不会推荐 Tensorflow 作为起点。我会假设,如果您使用历史价格来预测未来价格,那么您是在尝试将预测作为时间序列进行吗?我建议您查看关于时间序列预测的 machinelearningmastery 系列。

https://machinelearningmastery.com/findings-comparing-classical-and-machine-learning-methods-for-time-series-forecasting/

针对您的问题,这里有一个教程,适用于许多使用多变量输入的不同模型。

https://machinelearningmastery.com/how-to-develop-machine-learning-models-for-multivariate-multi-step-air-pollution-time-series-forecasting/

一旦您熟悉了建模,我建议您查看机器学习竞赛网站 kaggle.com 上的笔记本。他们举办了一场股市预测比赛,人们在比赛的参数范围内建立了很多预测股市的不同模型 returns。

https://www.kaggle.com/c/two-sigma-financial-news/notebooks