Skip to content

Commit

Permalink
Cleanup naming and remove tf dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jimfleming committed Feb 12, 2019
1 parent 357a513 commit a99b46d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyoneer/rl/strategies/mode_strategy_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ def __init__(self, policy):
self.policy = policy

def __call__(self, *args, **kwargs):
policy = self.policy(*args, **kwargs)
return policy.mode()
dist = self.policy(*args, **kwargs)
return dist.mode()
4 changes: 2 additions & 2 deletions pyoneer/rl/strategies/sample_strategy_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ def __init__(self, policy):
self.policy = policy

def __call__(self, *args, **kwargs):
policy = self.policy(*args, **kwargs)
return policy.sample()
dist = self.policy(*args, **kwargs)
return dist.sample()
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

REQUIRED_PACKAGES = [
'gym',
'tensorflow',
'tensorflow-probability',
]

Expand Down

0 comments on commit a99b46d

Please sign in to comment.