Skip to content

Commit 5f98a8e

Browse files
forgot to update max
1 parent dd15c9a commit 5f98a8e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

rl2/mountaincar/pg_tf_random.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def random_search(env, pmodel, gamma):
220220

221221
if avg_totalrewards > best_avg_totalreward:
222222
best_pmodel = tmp_pmodel
223+
best_avg_totalreward = avg_totalrewards
223224
return totalrewards, best_pmodel
224225

225226

rl2/mountaincar/pg_theano_random.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def random_search(env, pmodel, gamma):
191191

192192
if avg_totalrewards > best_avg_totalreward:
193193
best_pmodel = tmp_pmodel
194+
best_avg_totalreward = avg_totalrewards
194195
return totalrewards, best_pmodel
195196

196197

0 commit comments

Comments
 (0)