pub struct Selection { /* private fields */ }Expand description
The result of running a univariate selector over a feature matrix: the per-feature scores and the boolean selection mask, aligned to column order.
The scores vector holds one value per feature column (a variance, or an
ANOVA F-statistic), and mask[j] flags whether feature j was selected.
The two vectors always share the feature count.
Implementations§
Source§impl Selection
impl Selection
Sourcepub fn selected_count(&self) -> usize
pub fn selected_count(&self) -> usize
The number of features selected.
Sourcepub fn selected_indices(&self) -> Vec<usize>
pub fn selected_indices(&self) -> Vec<usize>
The zero-based indices of the selected features, in ascending column order.
Trait Implementations§
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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