pub enum FairnessMode {
ComparisonBudget {
k: usize,
},
Weighted {
alpha: f32,
beta: f32,
},
WallTime {
slice_ms: u64,
},
Adaptive {
learning_rate: f32,
},
EqualSteps,
}
Expand description
Fairness model configuration
Variants§
ComparisonBudget
Equal comparison budget for all algorithms
Weighted
Weighted fairness based on algorithm complexity
WallTime
Wall-clock time based fairness
Adaptive
Adaptive fairness that learns algorithm efficiency
EqualSteps
Equal steps (one operation per algorithm)
Trait Implementations§
Source§impl Clone for FairnessMode
impl Clone for FairnessMode
Source§fn clone(&self) -> FairnessMode
fn clone(&self) -> FairnessMode
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 FairnessMode
impl Debug for FairnessMode
Source§impl Default for FairnessMode
impl Default for FairnessMode
Source§impl PartialEq for FairnessMode
impl PartialEq for FairnessMode
impl StructuralPartialEq for FairnessMode
Auto Trait Implementations§
impl Freeze for FairnessMode
impl RefUnwindSafe for FairnessMode
impl Send for FairnessMode
impl Sync for FairnessMode
impl Unpin for FairnessMode
impl UnwindSafe for FairnessMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more