1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 19:20:19 +01:00

RL in Large Discrete Action Spaces - Wolpertinger Agent (#394)

* Currently this is specific to the case of discretizing a continuous action space. Can easily be adapted to other case by feeding the kNN otherwise, and removing the usage of a discretizing output action filter
This commit is contained in:
Gal Leibovich
2019-09-08 12:53:49 +03:00
committed by GitHub
parent fc50398544
commit 138ced23ba
46 changed files with 1193 additions and 51 deletions

View File

@@ -115,5 +115,8 @@ class ContinuousActionExplorationPolicy(ExplorationPolicy):
"""
:param action_space: the action space used by the environment
"""
assert isinstance(action_space, BoxActionSpace) or isinstance(action_space, GoalsSpace)
assert isinstance(action_space, BoxActionSpace) or \
(hasattr(action_space, 'filtered_action_space') and
isinstance(action_space.filtered_action_space, BoxActionSpace)) or \
isinstance(action_space, GoalsSpace)
super().__init__(action_space)