pub struct DecisionTree { /* private fields */ }Expand description
Implements a DecisionTree.
Implementations§
Source§impl DecisionTree
impl DecisionTree
Sourcepub fn build(
_attribute: String,
config: &TreeConfig,
data: &mut Dataset,
) -> Option<Box<DecisionTree>>
pub fn build( _attribute: String, config: &TreeConfig, data: &mut Dataset, ) -> Option<Box<DecisionTree>>
Build a decision tree with a String attribute, a TreeConfig and a dataset (a Vec<Item>).
Return either a Some(DecisionTree), if successful, or None if not.
Auto Trait Implementations§
impl Freeze for DecisionTree
impl RefUnwindSafe for DecisionTree
impl Send for DecisionTree
impl Sync for DecisionTree
impl Unpin 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