Fixing more issues with PCA

This commit is contained in:
Dominik Moritz Roth 2023-08-21 23:54:11 +02:00
parent c9ca5c0b53
commit 81e223183a

View File

@ -676,6 +676,8 @@ class ActorCriticPolicy(BasePolicy):
return self.action_dist.proba_distribution(action_logits=mean_actions)
elif isinstance(self.action_dist, StateDependentNoiseDistribution):
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:
raise ValueError("Invalid action distribution")