Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FandosA authored Dec 26, 2021
1 parent 52d851f commit 321ed06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_recurrent_model():
classes=np.unique(y_flat),
y=y_flat)

checkpoint = ModelCheckpoint(config.model_path, monitor = 'val_accuracy', verbose = 2, mode = 'max',
checkpoint = ModelCheckpoint(config.model_path, monitor = 'val_acc', verbose = 2, mode = 'max',
save_best_only = True, save_weights_only = False, save_freq = 1)

history = model.fit(X, y, epochs = 100, batch_size=1000, shuffle = True,
Expand All @@ -192,4 +192,4 @@ def get_recurrent_model():
plt.xlabel('Epochs',fontsize = 16)
plt.ylabel('Accuracy',fontsize = 16)
plt.title('Accuracy Curves',fontsize = 16)
plt.show()
plt.show()

0 comments on commit 321ed06

Please sign in to comment.