pub struct RFE {
pub n_features_to_select: usize,
pub step: usize,
/* private fields */
}Expand description
Recursive Feature Elimination
Fields§
§n_features_to_select: usize§step: usizeImplementations§
Source§impl RFE
impl RFE
pub fn new(n_features_to_select: usize) -> Self
pub fn step(self, step: usize) -> Self
Sourcepub fn fit(&mut self, x: &Tensor, y: &Tensor)
pub fn fit(&mut self, x: &Tensor, y: &Tensor)
Fit RFE using feature importance from a simple model
pub fn transform(&self, x: &Tensor) -> Tensor
pub fn fit_transform(&mut self, x: &Tensor, y: &Tensor) -> Tensor
pub fn get_support(&self) -> Vec<bool>
pub fn ranking(&self) -> Vec<usize>
Auto Trait Implementations§
impl Freeze for RFE
impl RefUnwindSafe for RFE
impl Send for RFE
impl Sync for RFE
impl Unpin for RFE
impl UnwindSafe for RFE
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