static Algorithm.from_state(state: Dict) ray.rllib.algorithms.algorithm.Algorithm[source]#

Recovers an Algorithm from a state object.

The state of an instantiated Algorithm can be retrieved by calling its get_state method. It contains all information necessary to create the Algorithm from scratch. No access to the original code (e.g. configs, knowledge of the Algorithm’s class, etc..) is needed.


state – The state to recover a new Algorithm instance from.


A new Algorithm instance.