Assignment03
Assignment03
Objec ve: The objec ve of this lab is to containerize and deploy your Deep Reinforcement
Learning applica on. Design a Deep Reinforcement Learning applica on where you are given
a maze and you must navigate the maze using a reinforcement learning agent. A er you
have trained the model, deploy the model on dockerhub.
3. Framing the agent class and defining all its func ons:
4. Making an object of Agent class:
5. Se ng the value of train_episodes and test_episodes for ideal execu on of the
program. Here, I have set the value of train_episodes to 69 and test_episodes to 39
to quickly complete the execu on. It is important to note that these values can be
adjusted as per the needs of the program. These values which have been set here are
not the op mal values:
7. Obtaining the train mean % score a er training the agent – Note that the metrics
values are low due to less number of episodes!
1. Create a file named app.py. Write the code for reinforcement learning – Only last few
lines are displayed due to excessive length:
2. Create a Dockerfile:
c) Push to dockerhub: