Skip to content

Commit

Permalink
Update RMDL_Image.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kk7nc authored Jun 29, 2020
1 parent 6235611 commit 4af43d2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions RMDL/RMDL_Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def Image_Classification(x_train, y_train, x_test, y_test, shape, batch_size=128

filepath = "weights\weights_DNN_" + str(i) + ".hdf5"
checkpoint = ModelCheckpoint(filepath,
monitor='val_acc',
monitor='val_accuracy',
verbose=1,
save_best_only=True,
mode='max')
Expand Down Expand Up @@ -197,7 +197,7 @@ def Image_Classification(x_train, y_train, x_test, y_test, shape, batch_size=128

filepath = "weights\weights_RNN_" + str(i) + ".hdf5"
checkpoint = ModelCheckpoint(filepath,
monitor='val_acc',
monitor='val_accuracy',
verbose=1,
save_best_only=True,
mode='max')
Expand Down Expand Up @@ -247,7 +247,10 @@ def Image_Classification(x_train, y_train, x_test, y_test, shape, batch_size=128
dropout)

filepath = "weights\weights_CNN_" + str(i) + ".hdf5"
checkpoint = ModelCheckpoint(filepath, monitor='val_acc', verbose=1, save_best_only=True,
checkpoint = ModelCheckpoint(filepath,
monitor='val_accuracy',
verbose=1,
save_best_only=True,
mode='max')
callbacks_list = [checkpoint]

Expand Down

0 comments on commit 4af43d2

Please sign in to comment.