fl_server_ai.aggregation.method ¶
Functions:
| Name | Description |
|---|---|
get_aggregation_class | Get the aggregation class based on the provided model, training or aggregation method. |
Classes¶
Functions¶
get_aggregation_class ¶
get_aggregation_class(value: Model) -> Type[Aggregation]
get_aggregation_class(value: Training) -> Type[Aggregation]
get_aggregation_class(value: AggregationMethod) -> Type[Aggregation]
get_aggregation_class(value: AggregationMethod | Model | Training) -> Type[Aggregation]
Get the aggregation class based on the provided model, training or aggregation method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
| AggregationMethod | Model | Training | The value based on which the aggregation class is determined. | required |
Returns:
| Type | Description |
|---|---|
Type[Aggregation] | Type[Aggregation]: The type of the aggregation class. |
Raises:
| Type | Description |
|---|---|
ValueError | If the type of value or the aggregation method is unknown. |