Skip to content

Commit

Permalink
Set patiance to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiuionescu committed Dec 20, 2023
1 parent 2224849 commit 9312710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sym/js/actor.critic.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class ActorCritic {
batchSize: batchSize,
callbacks: [
new tf.CustomCallback({onEpochEnd: onActorEpochEnd}),
tf.callbacks.earlyStopping({monitor: 'loss', verbose: 2})
tf.callbacks.earlyStopping({monitor: 'loss', verbose: 2, patience: 10})
]
}).then(info => {
this.latestActorLoss = info.history.loss.slice(-1);
Expand All @@ -237,7 +237,7 @@ class ActorCritic {
batchSize: batchSize,
callbacks: [
new tf.CustomCallback({onEpochEnd: onCriticEpochEnd}),
tf.callbacks.earlyStopping({monitor: 'loss', verbose: 2})
tf.callbacks.earlyStopping({monitor: 'loss', verbose: 2, patience: 10})
]
}).then(info => {
this.latestCriticLoss = info.history.loss.slice(-1);
Expand Down

0 comments on commit 9312710

Please sign in to comment.