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. See AlgorithmConfig.get_state for creating a state. The constructed class will be of state["class"].

Returns:

An AlgorithmConfig instance with attributes from the state.