Skip to content

Commit

Permalink
Update deep q learning.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wybin4 authored Apr 25, 2022
1 parent c64af83 commit 70dd450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deep q learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def main():
print(f"on #{episode}, epsilon is {epsilon}")
print(f"ep mean: {np.mean(total_training_rewards)}")
all_episodes_reward.append(total_training_rewards)
q_model.save(f'models/{MODEL_NAME}__{np.mean(all_episodes_reward[-25:])}mean__{int(time.time())}.model')
q_model.save(f'models/{MODEL_NAME}__{np.mean(all_episodes_reward[-25:])}mean__{int(time.time())}.model')
return all_episodes_reward

if __name__ == '__main__':
Expand Down

0 comments on commit 70dd450

Please sign in to comment.