Trait forester::data::SampleDescription [] [src]

pub trait SampleDescription {
    type ThetaSplit;
    type ThetaLeaf;
    type Feature: PartialOrd + SampleRange;
    type Prediction;
    fn sample_as_split_feature(&self, theta: &Self::ThetaSplit) -> Self::Feature;
fn sample_predict(&self, w: &Self::ThetaLeaf) -> Self::Prediction; }

Data sample used with decision trees

Associated Types

Type used to parametrize split features

Type used to parametrize leaf predictors

Type of a split feature

Type of predicted values; this can be the same as Self::Y (e.g. regression) or something different (e.g. class probabilities).

Required Methods

Compute the value of a leaf feature for a given sample

Compute the leaf prediction for a given sample

Implementors