get_default_policy_class#
- classmethod Algorithm.get_default_policy_class(config: AlgorithmConfig) Type[Policy] | None[source]#
Returns a default Policy class to use, given a config.
This class will be used by an Algorithm in case the policy class is not provided by the user in any single- or multi-agent PolicySpec.
Note: This method is ignored when the RLModule API is enabled.
- Parameters:
config (AlgorithmConfig) – The AlgorithmConfig to pick the Policy class for.
- Returns:
The default Policy class, or None if this Algorithm has none. The base implementation returns None.
- Return type:
Type[Policy] | None