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
input: Array1<f32>
The input parameter of this Sample
.
target: Array1<f32>
The expected target values of this Sample
.
Methods
impl Sample
[src]
fn new<A1, A2>(input: A1, target: A2) -> Sample where
A1: Into<Vec<f32>>,
A2: Into<Vec<f32>>,
A1: Into<Vec<f32>>,
A2: Into<Vec<f32>>,
Creates a new sample from a given input and a given target range of values.
Trait Implementations
impl Debug for Sample
[src]
impl Clone for Sample
[src]
fn clone(&self) -> Sample
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
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]
A1: Into<Vec<f32>>,
A2: Into<Vec<f32>>,