November 2019
Intermediate to advanced
304 pages
8h 40m
English
As a prerequisite, we will need to persist the agent policies and reload them back during evaluation.
The final policy (policy to make movements in Malmo space) used by the agent after training can be saved as shown here:
DQNPolicy<MalmoBox> pol = dql.getPolicy(); pol.save("cliffwalk_pixel.policy");
dql refers to the DQN model. We retrieve the final policies and store them as a DQNPolicy. A DQN policy provides actions that have the highest Q-value estimated by the model.
It can be restored later for evaluation/inference:
DQNPolicy<MalmoBox> pol = DQNPolicy.load("cliffwalk_pixel.policy");