PWhiddy / PokemonRedExperiments

Playing Pokemon Red with Reinforcement Learning
MIT License
6.99k stars 644 forks source link

set model params consistently on reload #151

Open bodiya opened 11 months ago

bodiya commented 11 months ago

This PR resolves Issue 148, and ensures that parameters are explicitly set to the same values they would be if a new model had been created.

Apologies for the polluted diff - didn't realize that black had done its magic. The relevant lines are 84-111 in the updated file. Let me know if you'd prefer to leave it unformatted, and I can resubmit with only the relevant lines changed.