Question: Assignment Instructions Develop a SARSA agent that is capable of acquiring policies within the openAI Gym Frozen Lake setting. Frozen Lake presents a grid world
Assignment Instructions
Develop a SARSA agent thatis capable of acquiringpolicies within theopenAIGym Frozen Lake setting.Frozen Lake presents a grid world scenario in which the agentis required tonavigate a treacherous frozen surface with perilous holes that could lead to fatal consequences.Procedure Instantiate the frozen Lake environment with gym. make Frozen LakeVdescdesc and use unwrapped method. The input seed should be used to seed the random number generators for both Gym andNumpy Implement SARSA agent using an epsilon greedybehavioralpolicy Initialize the agents Q table to zeros Train your agent with the given parameters. The inputamapis the Frozen Lake map that you need to resize and provide to thedescattribute when you instantiate the environment, gamma is the discount rate, alpha is the learning rate, epsilon is the parameter for epsilon greedybehaviorstrategy yoursarsaagent will use. An action should be selected uniformly at random if a random number is drawn between and is less than epsilon. Gamma Alpha Epsilon Noofepisodes seedamapSFFFHFFFFFFFFFFG
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
