tff.aggregators.as_weighted_aggregator
Stay organized with collections
Save and categorize content based on your preferences.
Constructs a weighted wrapper for an unweighted aggregation factory.
tff.aggregators.as_weighted_aggregator(
unweighted_aggregator: tff.aggregators.UnweightedAggregationFactory
) -> tff.aggregators.WeightedAggregationFactory
The returned tff.aggregators.WeightedAggregationFactory
has the same
functionality as the provided unweighted_aggregator
, ignoring the provided
weights. This is useful when converting unweighted aggregator to a weighted
aggregator which is "always uniformly weighted".
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.
[null,null,["Last updated 2024-09-20 UTC."],[],[],null,["# tff.aggregators.as_weighted_aggregator\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |\n\nConstructs a weighted wrapper for an unweighted aggregation factory. \n\n tff.aggregators.as_weighted_aggregator(\n unweighted_aggregator: ../../tff/aggregators/UnweightedAggregationFactory\n ) -\u003e ../../tff/aggregators/WeightedAggregationFactory\n\nThe returned [`tff.aggregators.WeightedAggregationFactory`](../../tff/aggregators/WeightedAggregationFactory) has the same\nfunctionality as the provided `unweighted_aggregator`, ignoring the provided\nweights. This is useful when converting unweighted aggregator to a weighted\naggregator which is \"always uniformly weighted\".\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------------------|---------------------------------------------------------------------------------------------------------|\n| `unweighted_aggregator` | A [`tff.aggregators.UnweightedAggregationFactory`](../../tff/aggregators/UnweightedAggregationFactory). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A [`tff.aggregators.WeightedAggregationFactory`](../../tff/aggregators/WeightedAggregationFactory). ||\n\n\u003cbr /\u003e"]]