pub struct FittedSelectFromModel { /* private fields */ }Expand description
Fitted SelectFromModel – holds the original importances and the indices
of the selected features.
Implementations§
Source§impl FittedSelectFromModel
impl FittedSelectFromModel
Sourcepub fn importances(&self) -> &Array1<f64>
pub fn importances(&self) -> &Array1<f64>
Per-feature importances supplied during fitting.
Sourcepub fn selected_indices(&self) -> &[usize]
pub fn selected_indices(&self) -> &[usize]
Indices of the selected features, sorted in ascending order.
Sourcepub fn n_features_selected(&self) -> usize
pub fn n_features_selected(&self) -> usize
Number of features that survived selection.
Trait Implementations§
Source§impl Clone for FittedSelectFromModel
impl Clone for FittedSelectFromModel
Source§fn clone(&self) -> FittedSelectFromModel
fn clone(&self) -> FittedSelectFromModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FittedSelectFromModel
impl Debug for FittedSelectFromModel
Source§impl<'de> Deserialize<'de> for FittedSelectFromModel
impl<'de> Deserialize<'de> for FittedSelectFromModel
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
Source§impl Serialize for FittedSelectFromModel
impl Serialize for FittedSelectFromModel
Auto Trait Implementations§
impl Freeze for FittedSelectFromModel
impl RefUnwindSafe for FittedSelectFromModel
impl Send for FittedSelectFromModel
impl Sync for FittedSelectFromModel
impl Unpin for FittedSelectFromModel
impl UnsafeUnpin for FittedSelectFromModel
impl UnwindSafe for FittedSelectFromModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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