stMind

about Tech, Computer vision and Machine learning

2020-06-20から1日間の記事一覧

Sentiment Analysisの学習履歴をプロット

学習時のlossとaccuracyを確認するのも容易。model.fitの戻り値をhistoryとして受け取って、横軸にepoch数、縦軸にlossやaccuracyの値をとって表示するだけ。 history = model.fit(padded, training_labels, epochs=num_epochs, validation_data=(testing_pa…