Struct prophet::Mentor [] [src]

pub struct Mentor<LR: LearnRateConfigState, LM: LearnMomentumConfigState, CR: CriterionConfigState, SC: SchedulingConfigState, LG: LogConfigState> { /* fields omitted */ }

Mentor follows the builder pattern to incrementally build properties for the training session and delay any expensive computations until the go routine is called.

Methods

impl<LM, CR, SC, LG> Mentor<Unset, LM, CR, SC, LG> where
    LM: LearnMomentumConfigState,
    CR: CriterionConfigState,
    SC: SchedulingConfigState,
    LG: LogConfigState, 
[src]

[src]

Use the given fixed learn rate.

Default learn rate is adapting behaviour.

Panics if given learn rate is invalid!

impl<LR, CR, SC, LG> Mentor<LR, Unset, CR, SC, LG> where
    LR: LearnRateConfigState,
    CR: CriterionConfigState,
    SC: SchedulingConfigState,
    LG: LogConfigState, 
[src]

[src]

Use the given fixed learn momentum.

Default learn momentum is fixed at 0.5.

Panics if given learn momentum is invalid

impl<LR, LM, SC, LG> Mentor<LR, LM, Unset, SC, LG> where
    LR: LearnRateConfigState,
    LM: LearnMomentumConfigState,
    SC: SchedulingConfigState,
    LG: LogConfigState, 
[src]

[src]

Use the given criterion.

Default criterion is AvgNetError(0.05).

impl<LR, LM, CR, LG> Mentor<LR, LM, CR, Unset, LG> where
    LR: LearnRateConfigState,
    LM: LearnMomentumConfigState,
    CR: CriterionConfigState,
    LG: LogConfigState, 
[src]

[src]

Use the given scheduling routine.

Default scheduling routine is to pick random samples.

impl<LR, LM, CR, SC> Mentor<LR, LM, CR, SC, Unset> where
    LR: LearnRateConfigState,
    LM: LearnMomentumConfigState,
    CR: CriterionConfigState,
    SC: SchedulingConfigState, 
[src]

[src]

Use the given logging configuration.

Default logging configuration is to never log anything.

impl<LR, LM, CR, SC, LG> Mentor<LR, LM, CR, SC, LG> where
    LR: LearnRateConfigState,
    LM: LearnMomentumConfigState,
    CR: CriterionConfigState,
    SC: SchedulingConfigState,
    LG: LogConfigState, 
[src]

[src]

Checks invariants about the given settings for the learning procedure such as checking if learn rate is within bounds or the samples are of correct sizes for the underlying neural network etc.

Then starts the learning procedure and returns the fully trained neural network (Prophet) that is capable to predict data if no errors occured while training it.

Trait Implementations

impl<LR: Debug + LearnRateConfigState, LM: Debug + LearnMomentumConfigState, CR: Debug + CriterionConfigState, SC: Debug + SchedulingConfigState, LG: Debug + LogConfigState> Debug for Mentor<LR, LM, CR, SC, LG>
[src]

[src]

Formats the value using the given formatter.

impl<LR: Clone + LearnRateConfigState, LM: Clone + LearnMomentumConfigState, CR: Clone + CriterionConfigState, SC: Clone + SchedulingConfigState, LG: Clone + LogConfigState> Clone for Mentor<LR, LM, CR, SC, LG>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more