Skip to content

Instantly share code, notes, and snippets.

@jsrimr jsrimr/agent_concept.py
Last active Sep 6, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.