Struct prophet::learn_config::LearnConfig [] [src]

pub struct LearnConfig {
    pub act_fn: ActivationFn<f32>,
    // some fields omitted
}

Represents a configuration that directly controls the parameters of learning for a neural net.

A system that tries to optimize the way a neural net learns over the duration of a training session could make a good use of this structure as an interface to the underlying parameters.

Fields

the activation function used during training and predicting

Methods

impl LearnConfig
[src]

Creates a new instance of LearnConfig.

Panics

If learn_rate and learn_momentum(0, 1).

Returns the current learn rate.

Returns the current learn rate.

Sets the learn rate of this configuration to the given value.

Panics

If the given learn rate is ∉ (0, 1].

Sets the learn momentum of this configuration to the given value.

Panics

If the given learn momentum ∉ [0, 1].

Trait Implementations

impl Copy for LearnConfig
[src]

impl Clone for LearnConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LearnConfig
[src]

Formats the value using the given formatter.

impl Display for LearnConfig
[src]

Formats the value using the given formatter.