Last active
September 6, 2019 03:10
-
-
Save jsrimr/ec321cfbed6fbc0e750c70f57db54246 to your computer and use it in GitHub Desktop.
Agent code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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