本文介绍了是否可以重新训练以前保存的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模型?
发布评论