pub struct HoeffdingClassifierConfig {
pub max_depth: usize,
pub delta: f64,
pub grace_period: usize,
pub n_bins: usize,
pub n_features: usize,
pub max_classes: usize,
}Available on crate feature
alloc only.Expand description
Configuration for HoeffdingTreeClassifier.
Use HoeffdingClassifierConfig::builder() to construct with defaults
and override only the parameters you need.
Fields§
§max_depth: usizeMaximum tree depth.
delta: f64Hoeffding bound confidence parameter (1 - delta). Lower = more splits.
grace_period: usizeMinimum samples at a leaf before considering a split.
n_bins: usizeNumber of histogram bins per feature for split evaluation.
n_features: usizeNumber of features (0 = lazy init from first sample).
max_classes: usizeMaximum number of classes (0 = auto-discover).
Implementations§
Source§impl HoeffdingClassifierConfig
impl HoeffdingClassifierConfig
Sourcepub fn builder() -> HoeffdingClassifierConfigBuilder
pub fn builder() -> HoeffdingClassifierConfigBuilder
Create a builder with default parameters.
Defaults:
max_depth: 10delta: 1e-7grace_period: 200n_bins: 32n_features: 0 (lazy init)max_classes: 0 (auto-discover)
Trait Implementations§
Source§impl Clone for HoeffdingClassifierConfig
impl Clone for HoeffdingClassifierConfig
Source§fn clone(&self) -> HoeffdingClassifierConfig
fn clone(&self) -> HoeffdingClassifierConfig
Returns a duplicate 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 HoeffdingClassifierConfig
impl RefUnwindSafe for HoeffdingClassifierConfig
impl Send for HoeffdingClassifierConfig
impl Sync for HoeffdingClassifierConfig
impl Unpin for HoeffdingClassifierConfig
impl UnsafeUnpin for HoeffdingClassifierConfig
impl UnwindSafe for HoeffdingClassifierConfig
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