Struct coniferous::CARTree[][src]

pub struct CARTree { /* fields omitted */ }

The model for a decision tree backed by the CART algorithm. A binary tree.

Methods

impl CARTree
[src]

Given a vector of x values, predict the corresponding category. Requires that the decision tree has already been fit.

In Review

Should this method potentially take a reference as opposed to ownership?

let x1 = vec![0.0, 1.0, 2.0];
let x2 = vec![2.0, 1.0, 0.0];
let x = vec![x1, x2];
// In this case, x[0] == x1 && x[0][2] == 2.0

Auto Trait Implementations

impl Send for CARTree

impl Sync for CARTree