是否可以重新训练以前保存的keras模型? [英] is it possible to retrain a previously saved keras model?

查看:120
本文介绍了是否可以重新训练以前保存的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模型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆