Struct tangram_linear::EarlyStoppingOptions[][src]

pub struct EarlyStoppingOptions {
    pub early_stopping_fraction: f32,
    pub n_rounds_without_improvement_to_stop: usize,
    pub min_decrease_in_loss_for_significant_change: f32,
}
Expand description

The parameters in this struct control how to determine whether training should stop early after each round or epoch.

Fields

early_stopping_fraction: f32

This is the fraction of the dataset that is set aside to compute the early stopping metric.

n_rounds_without_improvement_to_stop: usize

If this many rounds or epochs pass by without a significant improvement in the early stopping metric over the previous round or epoch, training will be stopped early.

min_decrease_in_loss_for_significant_change: f32

This is the minimum descrease in the early stopping metric for a round or epoch to be considered a significant improvement over the previous round or epoch.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.