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

#[repr(i32)]pub enum StatsModelType {
    StatsDenseGini,
    StatsSparseGini,
    StatsLeastSquaresRegression,
    StatsSparseThenDenseGini,
    StatsFixedSizeSparseGini,
}

Stats models generally specify information that is collected which is necessary to choose a split at a node. Specifically, they operate on a SplitCandidate::LeafStat proto.

Variants

StatsDenseGini
StatsSparseGini
StatsLeastSquaresRegression
StatsSparseThenDenseGini

STATS_SPARSE_THEN_DENSE_GINI is deprecated and no longer supported.

StatsFixedSizeSparseGini

Implementations

impl StatsModelType[src]

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

Returns true if value is a variant of StatsModelType.

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

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

Trait Implementations

impl Clone for StatsModelType[src]

impl Copy for StatsModelType[src]

impl Debug for StatsModelType[src]

impl Default for StatsModelType[src]

impl Eq for StatsModelType[src]

impl Hash for StatsModelType[src]

impl Ord for StatsModelType[src]

impl PartialEq<StatsModelType> for StatsModelType[src]

impl PartialOrd<StatsModelType> for StatsModelType[src]

impl StructuralEq for StatsModelType[src]

impl StructuralPartialEq for StatsModelType[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.