pub enum ImportanceMethod {
Weight,
Gain,
Cover,
TotalGain,
TotalCover,
}Expand description
Method to calculate variable importance.
Variants§
Weight
The number of times a feature is used to split the data across all trees.
Gain
The average split gain across all splits the feature is used in.
Cover
The average coverage across all splits the feature is used in.
TotalGain
The total gain across all splits the feature is used in.
TotalCover
The total coverage across all splits the feature is used in.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImportanceMethod
impl<'de> Deserialize<'de> for ImportanceMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ImportanceMethod
impl RefUnwindSafe for ImportanceMethod
impl Send for ImportanceMethod
impl Sync for ImportanceMethod
impl Unpin for ImportanceMethod
impl UnwindSafe for ImportanceMethod
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more