Skip to content

Instantly share code, notes, and snippets.

@davidrobles
Created June 3, 2012 19:28
Show Gist options
  • Save davidrobles/2864704 to your computer and use it in GitHub Desktop.
Save davidrobles/2864704 to your computer and use it in GitHub Desktop.
Markov Decision Process
class MDP:
def __init__(self, name, age):
self.name = name
self.age = age
def start(self):
pass
def actions(self, state):
pass
def states(self):
pass
def trans(self, state, action):
pass
def reward(self, state, action, next_state):
pass
def is_terminal(self, state):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment