#[repr(i32)]pub enum SplitPruningStrategyType {
SplitPruneNone = 0,
SplitPruneHalf = 1,
SplitPruneQuarter = 2,
SplitPrune10Percent = 3,
SplitPruneHoeffding = 4,
}
Expand description
Pruning strategies define how candidates are pruned over time. SPLIT_PRUNE_HALF prunes the worst half of splits every prune_ever_samples, etc. Note that prune_every_samples plays against the depth-dependent split_after_samples, so they should be set together.
Variants§
SplitPruneNone = 0
SplitPruneHalf = 1
SplitPruneQuarter = 2
SplitPrune10Percent = 3
SplitPruneHoeffding = 4
SPLIT_PRUNE_HOEFFDING prunes splits whose Gini impurity is worst than the best split’s by more than the Hoeffding bound.
Implementations§
Trait Implementations§
Source§impl Clone for SplitPruningStrategyType
impl Clone for SplitPruningStrategyType
Source§fn clone(&self) -> SplitPruningStrategyType
fn clone(&self) -> SplitPruningStrategyType
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 moreSource§impl Debug for SplitPruningStrategyType
impl Debug for SplitPruningStrategyType
Source§impl Default for SplitPruningStrategyType
impl Default for SplitPruningStrategyType
Source§fn default() -> SplitPruningStrategyType
fn default() -> SplitPruningStrategyType
Returns the “default value” for a type. Read more
Source§impl From<SplitPruningStrategyType> for i32
impl From<SplitPruningStrategyType> for i32
Source§fn from(value: SplitPruningStrategyType) -> i32
fn from(value: SplitPruningStrategyType) -> i32
Converts to this type from the input type.
Source§impl Hash for SplitPruningStrategyType
impl Hash for SplitPruningStrategyType
Source§impl Ord for SplitPruningStrategyType
impl Ord for SplitPruningStrategyType
Source§fn cmp(&self, other: &SplitPruningStrategyType) -> Ordering
fn cmp(&self, other: &SplitPruningStrategyType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SplitPruningStrategyType
impl PartialEq for SplitPruningStrategyType
Source§impl PartialOrd for SplitPruningStrategyType
impl PartialOrd for SplitPruningStrategyType
impl Copy for SplitPruningStrategyType
impl Eq for SplitPruningStrategyType
impl StructuralPartialEq for SplitPruningStrategyType
Auto Trait Implementations§
impl Freeze for SplitPruningStrategyType
impl RefUnwindSafe for SplitPruningStrategyType
impl Send for SplitPruningStrategyType
impl Sync for SplitPruningStrategyType
impl Unpin for SplitPruningStrategyType
impl UnwindSafe for SplitPruningStrategyType
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