pub struct DecisionTree { /* private fields */ }Expand description
A CART classification tree grown greedily by Gini impurity.
Implementations§
Source§impl DecisionTree
impl DecisionTree
pub fn new(max_depth: usize) -> Self
pub fn with_min_samples_split(self, n: usize) -> Self
pub fn with_max_features(self, m: usize, seed: u64) -> Self
Trait Implementations§
Source§impl Classifier for DecisionTree
impl Classifier for DecisionTree
Source§impl Clone for DecisionTree
impl Clone for DecisionTree
Auto Trait Implementations§
impl Freeze for DecisionTree
impl RefUnwindSafe for DecisionTree
impl Send for DecisionTree
impl Sync for DecisionTree
impl Unpin for DecisionTree
impl UnsafeUnpin for DecisionTree
impl UnwindSafe for DecisionTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more