Fixing more issues with PCA
This commit is contained in:
parent
c9ca5c0b53
commit
81e223183a
@ -676,6 +676,8 @@ class ActorCriticPolicy(BasePolicy):
|
|||||||
return self.action_dist.proba_distribution(action_logits=mean_actions)
|
return self.action_dist.proba_distribution(action_logits=mean_actions)
|
||||||
elif isinstance(self.action_dist, StateDependentNoiseDistribution):
|
elif isinstance(self.action_dist, StateDependentNoiseDistribution):
|
||||||
return self.action_dist.proba_distribution(mean_actions, self.log_std, latent_pi)
|
return self.action_dist.proba_distribution(mean_actions, self.log_std, latent_pi)
|
||||||
|
elif isinstance(self.action_dist, PCA_Distribution):
|
||||||
|
return self.action_dist.proba_distribution(mean_actions, self.log_std)
|
||||||
else:
|
else:
|
||||||
raise ValueError("Invalid action distribution")
|
raise ValueError("Invalid action distribution")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user