0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

modelの保存と読み込みの覚書

Posted at

モデルをJSON形式で保存

# JSON形式
json_string = model.to_json()

モデルをも見込み再構築

from keras.models import model_from_json
model = model_from_json(json_string)

重みの保存、読み込み

fro mkeras.models import load_model
# HDF5形式のファイルを作成
model.save('model.h5')

#モデルの読み込み
model = load_model('model.h5')
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?