pub struct FeatureAnalysis {
pub importance: Vec<(String, f64)>,
pub summary: FeatureSummary,
}Expand description
Feature importance analysis with named features.
Fields§
§importance: Vec<(String, f64)>Sorted vector of (feature_name, importance_score) pairs
summary: FeatureSummarySummary statistics of feature importances
Implementations§
Source§impl FeatureAnalysis
impl FeatureAnalysis
Sourcepub fn from_model(
model: &GradientBooster,
feature_names: Option<Vec<String>>,
) -> Self
pub fn from_model( model: &GradientBooster, feature_names: Option<Vec<String>>, ) -> Self
Auto Trait Implementations§
impl Freeze for FeatureAnalysis
impl RefUnwindSafe for FeatureAnalysis
impl Send for FeatureAnalysis
impl Sync for FeatureAnalysis
impl Unpin for FeatureAnalysis
impl UnwindSafe for FeatureAnalysis
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