Deep-Reinforcement-Learning-Algorithms-with-PyTorch
Deep-Reinforcement-Learning-Algorithms-with-PyTorch copied to clipboard
feat: add a way of resuming training
trafficstars
First of all, great work with the library!
My understanding of the library is that it starts training from scratch every time. Would there be an easy way of making possible to resume training for an agent?
I would be glad to try to help if you could give some guidance.
Thanks!
You could write a save/load method for the network parameters in the Base_Agent. As actor-critic/q/gradient methods have different (number of) networks you could filter the Base_Agent.dict class for nn.Module instances and save those to file/ load them to the agent. At least this is how I implemented it to load different agents for inference