pub fn learn_tree(self, train_set: &[(f64, NumericTruth)]) -> NumericTree {
        let dataref: Vec<(&f64, &NumericTruth)> =
            train_set.iter().map(|&(ref a, ref b)| (a, b)).collect();
        let tree = self.tree_param.learn_tree(self.func, &dataref[..]);
        tree
    }
/// Train a numeric tree using the ground truth `train_set`
Train a numeric tree using the ground truth `train_set`
Train a numeric tree using the ground truth ` train_set `
pub fn learn_tree(self, train_set: &[(f64, NumericTruth)]) -> NumericTree {
        let dataref: Vec<(&f64, &NumericTruth)> =
            train_set.iter().map(|&(ref a, ref b)| (a, b)).collect();
        let tree = self.tree_param.learn_tree(self.func, &dataref[..]);
        tree
    }
pub fn learn_tree ( self , train_set : & [ ( f64 , NumericTruth ) ] ) -> NumericTree { let dataref : Vec < ( & f64 , & NumericTruth ) > = train_set . iter ( ) . map ( | & ( ref a , ref b ) | ( a , b ) ) . collect ( ) ; let tree = self . tree_param . learn_tree ( self . func , & dataref [ .. ] ) ; tree }
Train a numeric tree using the ground truth `train_set`
Train a numeric tree using the ground truth ` train_set `
self
train_set
&[(f64, NumericTruth)]