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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user