pub enum AggregationStrategy {
FedAvg,
FedProx {
mu: u32,
},
WeightedAverage,
}Expand description
Aggregation strategy.
Variants§
FedAvg
Federated Averaging (McMahan et al., 2017).
FedProx
Federated Proximal (Li et al., 2020).
WeightedAverage
Simple weighted average.
Trait Implementations§
Source§impl Clone for AggregationStrategy
impl Clone for AggregationStrategy
Source§fn clone(&self) -> AggregationStrategy
fn clone(&self) -> AggregationStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AggregationStrategy
impl Debug for AggregationStrategy
Source§impl Default for AggregationStrategy
impl Default for AggregationStrategy
Source§impl PartialEq for AggregationStrategy
impl PartialEq for AggregationStrategy
impl Copy for AggregationStrategy
impl Eq for AggregationStrategy
impl StructuralPartialEq for AggregationStrategy
Auto Trait Implementations§
impl Freeze for AggregationStrategy
impl RefUnwindSafe for AggregationStrategy
impl Send for AggregationStrategy
impl Sync for AggregationStrategy
impl Unpin for AggregationStrategy
impl UnsafeUnpin for AggregationStrategy
impl UnwindSafe for AggregationStrategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more