ray.rllib.algorithms.algorithm_config.AlgorithmConfig.serialize#
- AlgorithmConfig.serialize() Dict[str, Any] [source]#
Returns a mapping from str to JSON’able values representing this config.
The resulting values don’t have any code in them. Classes (such as
callbacks_class
) are converted to their full classpath, e.g.ray.rllib.algorithms.callbacks.DefaultCallbacks
. Actual code such as lambda functions ware written as their source code (str) plus any closure information for properly restoring the code inside the AlgorithmConfig object made from the returned dict data. Dataclass objects get converted to dicts.- Returns:
A dict mapping from str to JSON’able values.