Struct rustlearn::trees::decision_tree::DecisionTree [] [src]

pub struct DecisionTree {
    // some fields omitted
}

A two-class decision tree.

Trait Implementations

impl Decodable for DecisionTree
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<DecisionTree, __D::Error>

impl Encodable for DecisionTree
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Clone for DecisionTree
[src]

fn clone(&self) -> DecisionTree

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> SupervisedModel<&'a Array> for DecisionTree
[src]

fn fit(&mut self, X: &Array, y: &Array) -> Result<(), &'static str>

fn decision_function(&self, X: &Array) -> Result<Array, &'static str>

fn predict(&self, x: T) -> Result<Array, &'static str>

impl<'a> SupervisedModel<&'a SparseColumnArray> for DecisionTree
[src]

fn fit(&mut self, X: &SparseColumnArray, y: &Array) -> Result<(), &'static str>

fn decision_function(&self, X: &SparseColumnArray) -> Result<Array, &'static str>

fn predict(&self, x: T) -> Result<Array, &'static str>