Lab End Sem - Deep Learning Using Python12536
Lab End Sem - Deep Learning Using Python12536
(25 marks)
(25 marks)
Task: Implement a Deep Q-Network (DQN) agent using PyTorch to play the
CartPole game in the OpenAI Gym environment. Train the DQN agent to balance the
pole for as long as possible. Visualize the agent's performance over time (e.g., total
reward per episode) and analyze the impact of different hyperparameters (e.g.,
learning rate, exploration-exploitation balance) on the agent's learning process.