Skip to content

Instantly share code, notes, and snippets.

@SolClover
Created October 16, 2022 06:21
Show Gist options
  • Save SolClover/f3a212e855285e3cf09e60df1387743d to your computer and use it in GitHub Desktop.
Save SolClover/f3a212e855285e3cf09e60df1387743d to your computer and use it in GitHub Desktop.
Initialize Q-table
# Initial Q-table
# Our Q-table is a matrix of state(observation) space x action space, i.e., 500 x 6
Qtable = np.zeros((env.observation_space.n, env.action_space.n))
# Show
Qtable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment