Skip to content

Instantly share code, notes, and snippets.

@jsrimr
Last active September 6, 2019 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsrimr/ec321cfbed6fbc0e750c70f57db54246 to your computer and use it in GitHub Desktop.
Save jsrimr/ec321cfbed6fbc0e750c70f57db54246 to your computer and use it in GitHub Desktop.
Agent code
class Agent():
def __init__(self, risk_aversion, **args):
...
def model():
...
def act(self, state, eps=0.):
...
return model(state)
def learn(self, experiences, is_weights, gamma):
...
model.update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment