nvflare.app_common.widgets.intime_model_selector module¶
- class IntimeModelSelectionHandler(*args, **kwargs)[source]¶
Bases:
IntimeModelSelectorHandler to determine if the model is globally best.
- Parameters
weigh_by_local_iter (bool, optional) – whether the metrics should be weighted by trainer’s iteration number.
aggregation_weights (dict, optional) – a mapping of client name to float for aggregation. Defaults to None.
- class IntimeModelSelector(weigh_by_local_iter=False, aggregation_weights=None)[source]¶
Bases:
WidgetHandler to determine if the model is globally best.
- Parameters
weigh_by_local_iter (bool, optional) – whether the metrics should be weighted by trainer’s iteration number.
aggregation_weights (dict, optional) – a mapping of client name to float for aggregation. Defaults to None.