#[non_exhaustive]pub struct StabilityConfig {
pub n_resamples: usize,
pub pi_thr: f64,
pub seed: u64,
}Expand description
Configuration for FDboost-style stability selection (REG-06-05).
Implements the Meinshausen-Bühlmann subsampling scheme with ⌊n/2⌋ rows
per replicate. The PFER bound E[V] ≤ q² / ((2·π_thr − 1)·p) is reported
as an informational diagnostic.
Construct via StabilityConfig::default(), then assign the fields you need (e.g. let mut c = StabilityConfig::default(); c.field = …;). This struct is #[non_exhaustive], so external crates cannot build it with a struct literal — not even functional-update ..Default::default() form.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.n_resamples: usizeNumber of resamples B (must be ≥ 1; default: 100).
pi_thr: f64Selection threshold π ∈ (0.5, 1.0] (default: 0.9).
Base-learner j is declared “stable” if its selection frequency ≥ pi_thr.
seed: u64Base RNG seed; replicate b uses seed.wrapping_add(b as u64) for isolation.
Trait Implementations§
Source§impl Clone for StabilityConfig
impl Clone for StabilityConfig
Source§fn clone(&self) -> StabilityConfig
fn clone(&self) -> StabilityConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StabilityConfig
impl Debug for StabilityConfig
Source§impl Default for StabilityConfig
impl Default for StabilityConfig
Source§impl PartialEq for StabilityConfig
impl PartialEq for StabilityConfig
impl StructuralPartialEq for StabilityConfig
Auto Trait Implementations§
impl Freeze for StabilityConfig
impl RefUnwindSafe for StabilityConfig
impl Send for StabilityConfig
impl Sync for StabilityConfig
impl Unpin for StabilityConfig
impl UnsafeUnpin for StabilityConfig
impl UnwindSafe for StabilityConfig
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
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,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.