pub struct TreeConfig {
pub decision: String,
pub max_depth: usize,
pub min_count: usize,
pub entropy_threshold: f64,
pub impurity_method: fn(&String, &Dataset) -> f64,
}
Expand description
DecisionTree
creation parameters.
Fields§
§decision: String
§max_depth: usize
§min_count: usize
§entropy_threshold: f64
§impurity_method: fn(&String, &Dataset) -> f64
Implementations§
Source§impl TreeConfig
impl TreeConfig
Sourcepub fn new() -> TreeConfig
pub fn new() -> TreeConfig
Create a default tree configuration.
pub fn new_gini() -> TreeConfig
Trait Implementations§
Source§impl Clone for TreeConfig
impl Clone for TreeConfig
Source§fn clone(&self) -> TreeConfig
fn clone(&self) -> TreeConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TreeConfig
impl RefUnwindSafe for TreeConfig
impl Send for TreeConfig
impl Sync for TreeConfig
impl Unpin for TreeConfig
impl UnwindSafe for TreeConfig
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