openfl.interface.aggregation_functions.fed_bagging.get_global_model

openfl.interface.aggregation_functions.fed_bagging.get_global_model#

openfl.interface.aggregation_functions.fed_bagging.get_global_model(iterator, target_round)[source]#

Retrieves the global model for the specific round from an iterator.

Parameters: iterator (iterable): An iterable containing items with ‘tags’ and ‘round’ keys. target_round (int): The round number for which the global model is to be retrieved.

Returns: np.ndarray: The numpy array representing the global model for the specified round.