pub struct SelfPacedCurriculum {
pub lambda: f64,
pub threshold: f64,
}Expand description
Self-paced learning: model determines its own learning pace.
Adaptively selects samples based on current model performance, prioritizing samples the model is ready to learn from.
Fields§
§lambda: f64Age parameter controlling pace (higher = more aggressive).
threshold: f64Threshold for sample selection.
Implementations§
Trait Implementations§
Source§impl Clone for SelfPacedCurriculum
impl Clone for SelfPacedCurriculum
Source§fn clone(&self) -> SelfPacedCurriculum
fn clone(&self) -> SelfPacedCurriculum
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 CurriculumStrategy for SelfPacedCurriculum
impl CurriculumStrategy for SelfPacedCurriculum
Source§fn select_samples(
&self,
_epoch: usize,
_total_epochs: usize,
difficulties: &ArrayView1<'_, f64>,
) -> TrainResult<Vec<usize>>
fn select_samples( &self, _epoch: usize, _total_epochs: usize, difficulties: &ArrayView1<'_, f64>, ) -> TrainResult<Vec<usize>>
Get the subset of samples to use for the current training step. Read more
Source§impl Debug for SelfPacedCurriculum
impl Debug for SelfPacedCurriculum
Auto Trait Implementations§
impl Freeze for SelfPacedCurriculum
impl RefUnwindSafe for SelfPacedCurriculum
impl Send for SelfPacedCurriculum
impl Sync for SelfPacedCurriculum
impl Unpin for SelfPacedCurriculum
impl UnwindSafe for SelfPacedCurriculum
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