11/1 7세션
model1.save('hello.keras')
from keras.models import load_model
model2 = load_model('hello.keras')
save_best_only=True : 이전보다 성능이 개선되었으면 저장from keras.callbacks import ModelCheckpoint
# Keras 2.11 이상 버전에서 모델 확장자 .keras
cp_path = '/content/{epoch:03d}.keras'
mcp = ModelCheckpoint(cp_path, monitor='val_loss', verbose = 1,
save_best_only=True)
# 학습
hist = model1.fit(x_train, y_train, epochs = 50, validation_split=.2,
callbacks=[mcp]).history
