PWhiddy / PokemonRedExperiments

Playing Pokemon Red with Reinforcement Learning
MIT License
7k stars 645 forks source link

Feature Request: Useful Interrupt #139

Closed HughMungis closed 1 year ago

HughMungis commented 1 year ago

So I'd like to stop my run manually but I don't want to lose the data. Is it possible to add an interrupt (Ctrl - L or whatever) so that the run ends, but the data isn't lost?

PWhiddy commented 1 year ago

Hi! All run data is written to files as well as model checkpoints, so if a run terminates you can restart where you left off. Change the file_name variable in the training script to point to the checkpoint you want to start from.