pub struct CompetenceCurriculum {
pub initial_competence: f64,
pub growth_rate: f64,
pub max_competence: f64,
}Expand description
Competence-based curriculum: adapts to model’s current competence level.
Gradually increases difficulty based on model’s mastery of easier samples.
Fields§
§initial_competence: f64Initial competence level (0.0 to 1.0).
growth_rate: f64Competence growth rate per epoch.
max_competence: f64Maximum competence level.
Implementations§
Trait Implementations§
Source§impl Clone for CompetenceCurriculum
impl Clone for CompetenceCurriculum
Source§fn clone(&self) -> CompetenceCurriculum
fn clone(&self) -> CompetenceCurriculum
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 CompetenceCurriculum
impl CurriculumStrategy for CompetenceCurriculum
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 CompetenceCurriculum
impl Debug for CompetenceCurriculum
Auto Trait Implementations§
impl Freeze for CompetenceCurriculum
impl RefUnwindSafe for CompetenceCurriculum
impl Send for CompetenceCurriculum
impl Sync for CompetenceCurriculum
impl Unpin for CompetenceCurriculum
impl UnwindSafe for CompetenceCurriculum
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