pub struct ExponentialCurriculum {
pub start_percentage: f64,
pub growth_rate: f64,
}Expand description
Exponential curriculum: exponentially increase sample percentage.
Uses an exponential schedule to quickly ramp up the number of training samples.
Fields§
§start_percentage: f64Initial percentage of samples.
growth_rate: f64Exponential growth rate (higher = faster growth).
Implementations§
Trait Implementations§
Source§impl Clone for ExponentialCurriculum
impl Clone for ExponentialCurriculum
Source§fn clone(&self) -> ExponentialCurriculum
fn clone(&self) -> ExponentialCurriculum
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 ExponentialCurriculum
impl CurriculumStrategy for ExponentialCurriculum
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 ExponentialCurriculum
impl Debug for ExponentialCurriculum
Auto Trait Implementations§
impl Freeze for ExponentialCurriculum
impl RefUnwindSafe for ExponentialCurriculum
impl Send for ExponentialCurriculum
impl Sync for ExponentialCurriculum
impl Unpin for ExponentialCurriculum
impl UnwindSafe for ExponentialCurriculum
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