|View source on GitHub|
An abstract base class for metrics managers.
tff.simulation.MetricsManager is a utility to save metric data across a
number of rounds of some simulation.
clear_metrics( round_num: int ) -> None
Clear out metrics at or after a given starting
Note that since
save_metrics is only compatible with nonnegative integer
clear_metrics(round_num=0) corresponds to clearing all
metrics previously saved via
||A nonnegative integer representing the starting round number for clearing metrics.|
save_metrics( metrics: Mapping[str, Any], round_num: int ) -> None
Saves metrics data for a given round.
Note that different implementations may save metrics in markedly different
ways, including skipping metrics depending on their type or
||A mapping with string valued keys.|
A nonnegative integer representing the round number associated