ray.rllib.algorithms.algorithm_config.AlgorithmConfig.from_state#
- classmethod AlgorithmConfig.from_state(state: Dict[str, Any]) Self | Any [source]#
Returns an instance constructed from the state.
- Parameters:
state – A dictionary containing the state of an
AlgorithmConfig
. SeeAlgorithmConfig.get_state
for creating a state. The constructed class will be ofstate["class"]
.- Returns:
An
AlgorithmConfig
instance with attributes from thestate
.