pub struct MemberConfig {
pub feature_permutation: Vec<usize>,
pub class_shift: usize,
pub cat_permutation: Option<Vec<Vec<usize>>>,
pub row_subsample: Option<Vec<usize>>,
pub norm_method: NormMethod,
}Fields§
§feature_permutation: Vec<usize>Permutation of 0..n_features (or a subsampled+permuted subset if
n_features > max_num_features).
class_shift: usizeAmount added (mod n_classes) to every training label fed to the model for this member.
Always 0 for regression or when class-shift is disabled/inapplicable.
cat_permutation: Option<Vec<Vec<usize>>>cat_col_index -> (original_code -> permuted_code), present only when
permute_categorical=true (default: off, so this is None for every member).
row_subsample: Option<Vec<usize>>Row indices to bag from 0..n_train, present only when row-subsampling is active
(default: off, so this is None for every member — use all rows).
norm_method: NormMethodAuto Trait Implementations§
impl Freeze for MemberConfig
impl RefUnwindSafe for MemberConfig
impl Send for MemberConfig
impl Sync for MemberConfig
impl Unpin for MemberConfig
impl UnsafeUnpin for MemberConfig
impl UnwindSafe for MemberConfig
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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