Skip to content

schola.sb3.action_space_patch.make_hybrid_dist

Function Definition

schola.sb3.action_space_patch.make_hybrid_dist(
action_space,
use_sde=False,
discrete_norm_factor=1.0,
continuous_norm_factor=1.0
)

Create a hybrid distribution from a dictionary of action spaces.

Parameters

action_space

Type: spaces.Dict
The dictionary of action spaces to create the distribution from.

use_sde

Type: bool, optional
Default: False
Whether to use state dependent noise.

discrete_norm_factor

Type: float, optional
Default: 1.0
The normalization factor for discrete actions.

continuous_norm_factor

Type: float, optional
Default: 1.0
The normalization factor for continuous actions.

Returns

Type: HybridDistribution