pub enum AcquisitionStrategy {
UncertaintySampling,
ExpectedInformationGain,
DiversitySampling {
num_clusters: usize,
},
UncertaintyDiversity {
alpha: f64,
},
QueryByCommittee,
ExpectedModelChange,
}Expand description
Active learning acquisition strategies
These strategies determine how samples are selected for labeling based on different criteria such as uncertainty, information gain, or diversity.
Variants§
UncertaintySampling
Select samples with highest uncertainty
Selects samples where the model is most uncertain about predictions. This is the most common active learning strategy.
ExpectedInformationGain
Select samples that maximize expected information gain
Chooses samples that are expected to provide the most information about the underlying data distribution.
DiversitySampling
Select diverse samples using clustering
Ensures diversity in selected samples by partitioning into clusters and sampling from each cluster.
§Arguments
num_clusters- Number of clusters to create for diversity
UncertaintyDiversity
Combine uncertainty and diversity
Balances between uncertain samples and diverse samples using a weighted combination approach.
§Arguments
alpha- Weight for uncertainty vs diversity (0.0-1.0)- 1.0 = pure uncertainty sampling
- 0.0 = pure diversity sampling
QueryByCommittee
Query by committee (variance across models)
Selects samples where multiple models disagree the most. Requires ensemble predictions or committee of models.
ExpectedModelChange
Expected model change
Selects samples that are expected to cause the largest change in model parameters when added to training set.
Trait Implementations§
Source§impl Clone for AcquisitionStrategy
impl Clone for AcquisitionStrategy
Source§fn clone(&self) -> AcquisitionStrategy
fn clone(&self) -> AcquisitionStrategy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AcquisitionStrategy
impl Debug for AcquisitionStrategy
Source§impl Default for AcquisitionStrategy
impl Default for AcquisitionStrategy
Source§impl PartialEq for AcquisitionStrategy
impl PartialEq for AcquisitionStrategy
impl StructuralPartialEq for AcquisitionStrategy
Auto Trait Implementations§
impl Freeze for AcquisitionStrategy
impl RefUnwindSafe for AcquisitionStrategy
impl Send for AcquisitionStrategy
impl Sync for AcquisitionStrategy
impl Unpin for AcquisitionStrategy
impl UnsafeUnpin for AcquisitionStrategy
impl UnwindSafe for AcquisitionStrategy
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
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.