是否可以重新训练以前保存的keras模型?

编程入门 行业动态 更新时间:2024-10-24 08:28:44
本文介绍了是否可以重新训练以前保存的keras模型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正在使用keras和tensorflow进行时间序列预测.我需要使用将来的数据重新训练模型.我的问题是,这在喀拉拉邦有可能吗?我们该怎么做?

解决方案

是.

将模型另存为.h5

要训练模型时,请再次加载它,然后像往常一样进行一次模型拟合.

请确保在加载模型后不编译模型,因为这会重置权重.

有关更多信息,请参见此链接.

>

i'm working in a time series prediction using keras and tensorflow. I need to retrain the model with future data. My question is, is this possible in keras and how we can do that?

解决方案

yes.

Save your model as .h5

When you want to train your model, load it again and do a model.fit as normal.

Make sure you do not compile your model after loading it as this will reset your weights.

See this link for more info

更多推荐

是否可以重新训练以前保存的keras模型?

本文发布于:2023-11-10 09:48:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1575047.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模型   keras

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!