Closed forhonourlx closed 4 years ago
Hi Shangtong,
I wonder how to write a eval_step()?
class BaseAgent: def eval_step(self, state): raise NotImplementedError
For example in CategoricalActorCriticNet(), how to eval the model and get a certain action?
CategoricalActorCriticNet()
if action is None: action = dist.sample() log_prob = dist.log_prob(action).unsqueeze(-1) entropy = dist.entropy().unsqueeze(-1)
Thanks in advance.
Sorry I cannot help issues like this.
Hi Shangtong,
I wonder how to write a eval_step()?
For example in
CategoricalActorCriticNet()
, how to eval the model and get a certain action?Thanks in advance.