pub struct CoreSetApproach {
pub batch_size: usize,
pub distance_metric: String,
pub initialization: String,
pub max_iter: usize,
pub random_state: Option<u64>,
}Expand description
Core-set approach for batch active learning
This method selects a batch of samples that best represents the unlabeled data distribution, acting as a “core-set” or summary of the data.
Fields§
§batch_size: usizebatch_size
distance_metric: Stringdistance_metric
initialization: Stringinitialization
max_iter: usizemax_iter
random_state: Option<u64>random_state
Implementations§
Source§impl CoreSetApproach
impl CoreSetApproach
pub fn new() -> Self
pub fn batch_size(self, batch_size: usize) -> Result<Self>
pub fn distance_metric(self, distance_metric: String) -> Self
pub fn initialization(self, initialization: String) -> Self
pub fn max_iter(self, max_iter: usize) -> Self
pub fn random_state(self, random_state: u64) -> Self
pub fn query( &self, X: &ArrayView2<'_, f64>, _probabilities: &ArrayView2<'_, f64>, ) -> Result<Vec<usize>>
Trait Implementations§
Source§impl Clone for CoreSetApproach
impl Clone for CoreSetApproach
Source§fn clone(&self) -> CoreSetApproach
fn clone(&self) -> CoreSetApproach
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 CoreSetApproach
impl Debug for CoreSetApproach
Auto Trait Implementations§
impl Freeze for CoreSetApproach
impl RefUnwindSafe for CoreSetApproach
impl Send for CoreSetApproach
impl Sync for CoreSetApproach
impl Unpin for CoreSetApproach
impl UnwindSafe for CoreSetApproach
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