ray.rllib.algorithms.algorithm_config.AlgorithmConfig.from_dict#

classmethod AlgorithmConfig.from_dict(config_dict: dict) AlgorithmConfig[source]#

Creates an AlgorithmConfig from a legacy python config dict.

from ray.rllib.algorithms.ppo.ppo import PPOConfig
# pass a RLlib config dict
ppo_config = PPOConfig.from_dict({})
ppo = ppo_config.build(env="Pendulum-v1")
Parameters:

config_dict – The legacy formatted python config dict for some algorithm.

Returns:

A new AlgorithmConfig object that matches the given python config dict.