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_statefor creating a state. The constructed class will be ofstate["class"].- Returns:
An
AlgorithmConfiginstance with attributes from thestate.