pub struct CurriculumConfig {
pub strategy: CurriculumStrategy,
pub difficulty_metric: DifficultyMetric,
pub initial_threshold: f32,
pub final_threshold: f32,
pub warmup_epochs: usize,
pub pacing_function: PacingFunction,
pub min_samples_per_batch: usize,
}Expand description
Curriculum learning configuration
Fields§
§strategy: CurriculumStrategyCurriculum strategy
difficulty_metric: DifficultyMetricDifficulty metric
initial_threshold: f32Initial difficulty threshold (0.0 = easiest, 1.0 = hardest)
final_threshold: f32Final difficulty threshold
warmup_epochs: usizeNumber of epochs to reach final threshold
pacing_function: PacingFunctionPacing function (linear, exponential, etc.)
min_samples_per_batch: usizeMinimum samples per batch
Implementations§
Source§impl CurriculumConfig
impl CurriculumConfig
Sourcepub fn self_paced(warmup_epochs: usize) -> Self
pub fn self_paced(warmup_epochs: usize) -> Self
Self-paced learning configuration
Sourcepub fn competence_based(warmup_epochs: usize) -> Self
pub fn competence_based(warmup_epochs: usize) -> Self
Competence-based configuration
Sourcepub fn anti_curriculum() -> Self
pub fn anti_curriculum() -> Self
Anti-curriculum (hard-to-easy)
Trait Implementations§
Source§impl Clone for CurriculumConfig
impl Clone for CurriculumConfig
Source§fn clone(&self) -> CurriculumConfig
fn clone(&self) -> CurriculumConfig
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 CurriculumConfig
impl Debug for CurriculumConfig
Auto Trait Implementations§
impl Freeze for CurriculumConfig
impl RefUnwindSafe for CurriculumConfig
impl Send for CurriculumConfig
impl Sync for CurriculumConfig
impl Unpin for CurriculumConfig
impl UnwindSafe for CurriculumConfig
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