[][src]Struct error_predictive_learning::TrainingSettings

pub struct TrainingSettings {
    pub accuracy_error: f64,
    pub step: f64,
    pub max_iterations: u64,
    pub error_predictions: usize,
    pub reset_interval: u64,
    pub elasticity: f64,
    pub debug: bool,
}

Stores training settings.

Fields

accuracy_error: f64

Acceptable accuracy in error.

step: f64

The minimum step value.

When error_predictions is set to 0, this is used as fixed step.

max_iterations: u64

Maximum number of iterations.

error_predictions: usize

The number of error prediction terms.

More terms accelerate the search, but might lead to instability.

reset_interval: u64

The interval to reset error predictions, in case they are far off or become unstable.

elasticity: f64

A factor greater than zero to prevent under or over-stepping.

E.g. 0.95

This is used because predicted errors does not provide information about the gradient directly in the domain. Elasticity is used to estimate the gradient.

debug: bool

Whether to print out result each reset interval.

Trait Implementations

impl Clone for TrainingSettings[src]

impl Copy for TrainingSettings[src]

impl Debug for TrainingSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.