Skip to content

Instantly share code, notes, and snippets.

@thunderInfy
Created October 9, 2019 17:59
Show Gist options
  • Save thunderInfy/e403e5ab3af978e97cb2ea6c099591f1 to your computer and use it in GitHub Desktop.
Save thunderInfy/e403e5ab3af978e97cb2ea6c099591f1 to your computer and use it in GitHub Desktop.
#Initializing the value and policy matrices. Initial policy has zero value for all states.
value = np.zeros((jcp.max_cars()+1, jcp.max_cars()+1))
policy = value.copy().astype(int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment