训练第一个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 @   bH1pJ  阅读(28)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示