pub trait DTrees_NodeTraitConst {
    fn as_raw_DTrees_Node(&self) -> *const c_void;

    fn value(&self) -> f64 { ... }
    fn class_idx(&self) -> i32 { ... }
    fn parent(&self) -> i32 { ... }
    fn left(&self) -> i32 { ... }
    fn right(&self) -> i32 { ... }
    fn default_dir(&self) -> i32 { ... }
    fn split(&self) -> i32 { ... }
}
Expand description

The class represents a decision tree node.

Required Methods

Provided Methods

Value at the node: a class label in case of classification or estimated function value in case of regression.

Class index normalized to 0..class_count-1 range and assigned to the node. It is used internally in classification trees and tree ensembles.

Index of the parent node

Index of the left child node

Index of right child node

Default direction where to go (-1: left or +1: right). It helps in the case of missing values.

Index of the first split

Implementors