本代码的功能介绍参考CSDN博客 https://blog.csdn.net/nudt_zrs/article/details/82312974
主要实现代码为 train_lstm_flight,
主要注意事项:
1、读入CSV数据文件(数据格式、数据数量)
2、定义LSTM模型,设计隐藏层个数、调试步长
3、训练、验证、预测
4、画图,注意观察时间点的个数
本文代码参考了https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/timeseries ,如需了解更多信息可点击查看。