Skip to content

Instantly share code, notes, and snippets.

@darkcurrent
Last active January 12, 2019 15:55
Show Gist options
  • Save darkcurrent/8bd18ae378921a19d8c6763b5d7b1147 to your computer and use it in GitHub Desktop.
Save darkcurrent/8bd18ae378921a19d8c6763b5d7b1147 to your computer and use it in GitHub Desktop.
history = model.fit_generator(
generator=train_generator,
epochs=15,
validation_data=validation_generator,
steps_per_epoch=40,
validation_steps=20)
plt.plot(history.history['acc'])
plt.plot(history.history['val_acc'])
plt.title('Model doğruluğu')
plt.ylabel('Doğruluk')
plt.xlabel('Epoch')
plt.legend(['Train', 'Test'], loc='upper left')
plt.show()
plt.plot(history.history['loss'])
plt.plot(history.history['val_loss'])
plt.title('Model kaybı')
plt.ylabel('Kayıp')
plt.xlabel('Epoch')
plt.legend(['Train', 'Test'], loc='upper left')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment