Struct prophet::Sample [] [src]

pub struct Sample {
    pub input: Array1<f32>,
    pub target: Array1<f32>,
}

A sample used to train a disciple during supervised learning.

Fields

The input parameter of this Sample.

The expected target values of this Sample.

Methods

impl Sample
[src]

Creates a new sample from a given input and a given target range of values.

Trait Implementations

impl Debug for Sample
[src]

Formats the value using the given formatter.

impl Clone for Sample
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A1, A2> From<(A1, A2)> for Sample where
    A1: Into<Vec<f32>>,
    A2: Into<Vec<f32>>, 
[src]

Performs the conversion.