训练第一个LSTM网络

第一步骤,找到Demo;

https://github.com/XXX/keras/tree/master/examples/

 

"""
#This script demonstrates the use of a convolutional LSTM network.

This network is used to predict the next frame of an artificially
generated movie which contains moving squares.
"""

第二步骤,Run起来;

用的环境是Laptop笔记本上的“KerasEnv”

遇到了这样的麻烦:

“ensorflow.python.keras.backend' has no attribute 'get_graph'”

how to fix this problem

"module 'tensorflow.python.keras.backend' has no attribute 'get_graph'"

请参考:“https://blog.csdn.net/u014466109/article/details/88877321

仍然有错误:“No module named 'tensorflow.python.eager'”

以上的方式好像都没有解决问题,最终这个问题如何得到解决呢?

I solve this problem by using pip install tensorflow==1.14.0.

美中不足的地方是,我用的还是CPU,没有用上GPU;

 

第三步骤,对结果进行分析和讨论

如何查看深度学习的网络结构?

参考:https://blog.csdn.net/Hodors/article/details/97111092

看到的网络模型结构为:

网络结构

 

查看预测出来的结果:

 

posted @ 2019-10-05 19:28  bH1pJ  阅读(23)  评论(0编辑  收藏  举报