Skip to content

Commit

Permalink
[USGS-R#146] rm print statement; move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jsadler2 committed Jan 19, 2022
1 parent 454dc73 commit 64a9ea0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions river_dl/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def train_model(
csv_log = tf.keras.callbacks.CSVLogger(log_file)
callbacks.append(csv_log)

print(best_val_weight_dir)
# Save alternate weight file that saves the best validation weights
if best_val_weight_dir:
best_val = tf.keras.callbacks.ModelCheckpoint(
best_val_weight_dir, monitor='val_loss', verbose=0, save_best_only=True,
Expand Down Expand Up @@ -130,6 +130,5 @@ def train_model(
if weight_dir:
model.save_weights(weight_dir)

# Save alternate weight file that saves the best validation weights

return model

0 comments on commit 64a9ea0

Please sign in to comment.