0

このコードを見ました (非常に人気があり高品質のコード)

https://www.tensorflow.org/tutorials/generative/dcgan

モデルの学習過程を取り出したい、ということはAccuracyとlossのグラフを見たいのですがうまくいきません

このコードのどこで履歴をモデルに抽出しますか

このコードのように:

print(history_num_1.history.keys())
plt.plot(history_num_1.history['accuracy'])
plt.plot(history_num_1.history['val_accuracy'])
plt.title('model accuracy')
plt.ylabel('accuracy')
plt.ylim(0,2)

plt.xlabel('epoch')
plt.legend(['train', 'Val'], loc='upper left')

plt.show()
plt.plot(history_num_1.history['loss'])
plt.plot(history_num_1.history['val_loss'])
plt.title('model loss')
plt.ylabel('loss')
plt.ylim(0,2)
plt.xlabel('epoch')
plt.legend(['train', 'Val'], loc='upper left')

plt.show()

tnx

4

0 に答える 0