ray.rllib.algorithms.algorithm_config.AlgorithmConfig.update_from_dict#

AlgorithmConfig.update_from_dict(config_dict: dict) AlgorithmConfig[source]#

Modifies this AlgorithmConfig via the provided python config dict.

Warns if config_dict contains deprecated keys. Silently sets even properties of self that do NOT exist. This way, this method may be used to configure custom Policies which do not have their own specific AlgorithmConfig classes, e.g. ray.rllib.examples.policy.random_policy::RandomPolicy.

Parameters:

config_dict – The old-style python config dict (PartialAlgorithmConfigDict) to use for overriding some properties defined in there.

Returns:

This updated AlgorithmConfig object.