pub enum ImportanceType {
Split,
Gain,
}
Expand description
Type of feature importance
https://lightgbm.readthedocs.io/en/latest/C-API.html#c.LGBM_BoosterFeatureImportance
Variants§
Split
Numbers of times the feature is used in a model
Gain
Total gains of splits which use the feature
Trait Implementations§
Source§impl From<ImportanceType> for i32
impl From<ImportanceType> for i32
Source§fn from(value: ImportanceType) -> Self
fn from(value: ImportanceType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImportanceType
impl RefUnwindSafe for ImportanceType
impl Send for ImportanceType
impl Sync for ImportanceType
impl Unpin for ImportanceType
impl UnwindSafe for ImportanceType
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