Skip to content

Commit

Permalink
- minor fix "NES.utils.BestWeights"
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrubas committed Dec 30, 2023
1 parent 88073af commit 76c0bfe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions NES/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,15 @@ class BestWeights(tf.keras.callbacks.Callback):
"""

def __init__(self,
nn_model,
monitor='loss',
freq=50,
verbose=1,
conversion=lambda x: x * 10**(-0.16),

):
super(BestWeights, self).__init__()
assert monitor == 'loss' or monitor == 'val_loss', \
"Only 'loss' and 'val_loss' are supported for monitor metric"

self.model = nn_model
self.monitor = monitor
self.verbose = verbose
self.freq = freq
Expand Down

0 comments on commit 76c0bfe

Please sign in to comment.