Skip to main content

DatasetRecord

Trait DatasetRecord 

Source
pub trait DatasetRecord: DeserializeOwned {
    const N_INPUTS: usize;

    // Required methods
    fn input(&self, column: usize) -> f64;
    fn target(&self) -> f64;
}
Expand description

A record that can be collected into a dataset.

Required Associated Constants§

Source

const N_INPUTS: usize

Number of columns for inputs.

Required Methods§

Source

fn input(&self, column: usize) -> f64

Value of EoS input column.

Source

fn target(&self) -> f64

Target value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§