ray.rllib.algorithms.algorithm.Algorithm.get_default_policy_class
ray.rllib.algorithms.algorithm.Algorithm.get_default_policy_class#
- classmethod Algorithm.get_default_policy_class(config: ray.rllib.algorithms.algorithm_config.AlgorithmConfig) Optional[Type[ray.rllib.policy.policy.Policy]] [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.