ray.rllib.algorithms.algorithm.Algorithm.get_weights#

Algorithm.get_weights(policies: Optional[List[str]] = None) dict[source]#

Return a dictionary of policy ids to weights.

Parameters

policies – Optional list of policies to return weights for, or None for all policies.