This commit is contained in:
2024-10-27 09:16:28 -04:00
parent 9db3b0bcd9
commit 04daecbd44
2 changed files with 8 additions and 25 deletions

View File

@@ -94,10 +94,10 @@ model.compile(loss='binary_crossentropy',optimizer=optimizer,metrics=['accuracy'
history=model.fit(train_ds, epochs=epochs, validation_data=val_ds,callbacks=[tensorboard,checkpointer,early_stopping])
# plot the learning curves
pyplot.plot(history.history['accuracy'],label='train')
pyplot.plot(history.history['val_accuracy'],label='validation')
pyplot.legend()
pyplot.show()
# pyplot.plot(history.history['accuracy'],label='train')
# pyplot.plot(history.history['val_accuracy'],label='validation')
# pyplot.legend()
# pyplot.show()