Trait TrainingConfiguration

Source
pub trait TrainingConfiguration<T>: NetworkConfig<T> {
    // Required methods
    fn epochs(&self) -> usize;
    fn batch_size(&self) -> usize;

    // Provided methods
    fn learning_rate(&self) -> Option<&T> { ... }
    fn momentum(&self) -> Option<&T> { ... }
    fn weight_decay(&self) -> Option<&T> { ... }
    fn dropout(&self) -> Option<&T> { ... }
    fn decay(&self) -> Option<&T> { ... }
    fn beta1(&self) -> Option<&T> { ... }
    fn beta2(&self) -> Option<&T> { ... }
    fn epsilon(&self) -> Option<&T> { ... }
    fn gradient_clip(&self) -> Option<&T> { ... }
}

Required Methods§

Source

fn epochs(&self) -> usize

Source

fn batch_size(&self) -> usize

Provided Methods§

Source

fn learning_rate(&self) -> Option<&T>

Source

fn momentum(&self) -> Option<&T>

Source

fn weight_decay(&self) -> Option<&T>

Source

fn dropout(&self) -> Option<&T>

Source

fn decay(&self) -> Option<&T>

Source

fn beta1(&self) -> Option<&T>

Source

fn beta2(&self) -> Option<&T>

Source

fn epsilon(&self) -> Option<&T>

Source

fn gradient_clip(&self) -> Option<&T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§