Fix typo 2

This commit is contained in:
Dominik Moritz Roth 2024-03-09 13:58:56 +01:00
parent 4a7fbc2470
commit 1c3d3cf6cf

View File

@ -24,9 +24,10 @@ def _patched_make_proba_distribution(
cls = StateDependentNoiseDistribution
elif use_pca:
cls = PCA_Distribution
return cls(get_action_dim(action_space), n_envs=n_envs, **dist_kwargs)
else:
cls = DiagGaussianDistribution
return cls(get_action_dim(action_space), n_envs=n_envs, **dist_kwargs)
return cls(get_action_dim(action_space), **dist_kwargs)
elif isinstance(action_space, spaces.Discrete):
return CategoricalDistribution(action_space.n, **dist_kwargs)
elif isinstance(action_space, spaces.MultiDiscrete):