modification of expl.

This commit is contained in:
NM512
2023-05-21 08:17:47 +09:00
parent b8ef214efa
commit 02c3d45fcf
3 changed files with 28 additions and 16 deletions

View File

@@ -61,7 +61,7 @@ class Dreamer(nn.Module):
reward = lambda f, s, a: self._wm.heads["reward"](f).mean
self._expl_behavior = dict(
greedy=lambda: self._task_behavior,
random=lambda: expl.Random(config),
random=lambda: expl.Random(config, act_space),
plan2explore=lambda: expl.Plan2Explore(config, self._wm, reward),
)[config.expl_behavior]().to(self._config.device)