PWhiddy / PokemonRedExperiments

Playing Pokemon Red with Reinforcement Learning
MIT License
6.88k stars 629 forks source link

set model params consistently on reload #151

Open bodiya opened 9 months ago

bodiya commented 9 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.