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

Algorithm.get_weights(policies: List[str] | None = 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.