Trait LabelProblem

Source
pub trait LabelProblem: ProblemBase {
    type T;

    // Required method
    fn label(&self, i: usize) -> Self::T;
}
Expand description

Training problem providing labels for each sample

Required Associated Types§

Source

type T

Type of the labels

Required Methods§

Source

fn label(&self, i: usize) -> Self::T

Gets the label of the ith sample.

Implementors§