pub struct WeakSupervisionConfig {
pub aggregation: AggregationStrategy,
pub min_confidence: f32,
pub min_votes: usize,
pub include_abstained: bool,
pub default_label: i32,
}Expand description
Configuration for weak supervision.
Fields§
§aggregation: AggregationStrategyAggregation strategy.
min_confidence: f32Minimum confidence threshold.
min_votes: usizeMinimum number of non-abstaining votes.
include_abstained: boolWhether to include abstained samples with default label.
default_label: i32Default label for fully-abstained samples.
Implementations§
Source§impl WeakSupervisionConfig
impl WeakSupervisionConfig
Sourcepub fn with_aggregation(self, strategy: AggregationStrategy) -> Self
pub fn with_aggregation(self, strategy: AggregationStrategy) -> Self
Set aggregation strategy.
Sourcepub fn with_min_confidence(self, confidence: f32) -> Self
pub fn with_min_confidence(self, confidence: f32) -> Self
Set minimum confidence threshold.
Sourcepub fn with_min_votes(self, votes: usize) -> Self
pub fn with_min_votes(self, votes: usize) -> Self
Set minimum votes required.
Sourcepub fn with_include_abstained(self, include: bool, default_label: i32) -> Self
pub fn with_include_abstained(self, include: bool, default_label: i32) -> Self
Enable including abstained samples.
Trait Implementations§
Source§impl Clone for WeakSupervisionConfig
impl Clone for WeakSupervisionConfig
Source§fn clone(&self) -> WeakSupervisionConfig
fn clone(&self) -> WeakSupervisionConfig
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 WeakSupervisionConfig
impl Debug for WeakSupervisionConfig
Auto Trait Implementations§
impl Freeze for WeakSupervisionConfig
impl RefUnwindSafe for WeakSupervisionConfig
impl Send for WeakSupervisionConfig
impl Sync for WeakSupervisionConfig
impl Unpin for WeakSupervisionConfig
impl UnwindSafe for WeakSupervisionConfig
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