[][src]Enum tensorflow_proto::tensorflow::tensorforest::SplitPruningStrategyType

#[repr(i32)]pub enum SplitPruningStrategyType {
    SplitPruneNone,
    SplitPruneHalf,
    SplitPruneQuarter,
    SplitPrune10Percent,
    SplitPruneHoeffding,
}

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
SplitPruneHalf
SplitPruneQuarter
SplitPrune10Percent
SplitPruneHoeffding

SPLIT_PRUNE_HOEFFDING prunes splits whose Gini impurity is worst than the best split's by more than the Hoeffding bound.

Implementations

impl SplitPruningStrategyType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of SplitPruningStrategyType.

pub fn from_i32(value: i32) -> Option<SplitPruningStrategyType>[src]

Converts an i32 to a SplitPruningStrategyType, or None if value is not a valid variant.

Trait Implementations

impl Clone for SplitPruningStrategyType[src]

impl Copy for SplitPruningStrategyType[src]

impl Debug for SplitPruningStrategyType[src]

impl Default for SplitPruningStrategyType[src]

impl Eq for SplitPruningStrategyType[src]

impl Hash for SplitPruningStrategyType[src]

impl Ord for SplitPruningStrategyType[src]

impl PartialEq<SplitPruningStrategyType> for SplitPruningStrategyType[src]

impl PartialOrd<SplitPruningStrategyType> for SplitPruningStrategyType[src]

impl StructuralEq for SplitPruningStrategyType[src]

impl StructuralPartialEq for SplitPruningStrategyType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.