pub struct BreakdownPointAnalysis {
pub estimators: Vec<String>,
pub contamination_levels: Vec<f64>,
pub n_simulations: usize,
pub breakdown_threshold: f64,
pub random_state: Option<u64>,
}Expand description
Breakdown point analysis for robust graph learning methods
Fields§
§estimators: Vec<String>Robust estimators to analyze: “median”, “huber”, “tukey”, “trimmed_mean”
contamination_levels: Vec<f64>Contamination levels to test (0.0 to 0.5)
n_simulations: usizeNumber of Monte Carlo simulations
breakdown_threshold: f64Breakdown threshold (relative change in estimate)
random_state: Option<u64>Random state for reproducibility
Implementations§
Source§impl BreakdownPointAnalysis
impl BreakdownPointAnalysis
Sourcepub fn estimators(self, estimators: Vec<String>) -> Self
pub fn estimators(self, estimators: Vec<String>) -> Self
Set the estimators to analyze
Sourcepub fn contamination_levels(self, levels: Vec<f64>) -> Self
pub fn contamination_levels(self, levels: Vec<f64>) -> Self
Set the contamination levels to test
Sourcepub fn n_simulations(self, n: usize) -> Self
pub fn n_simulations(self, n: usize) -> Self
Set the number of simulations
Sourcepub fn breakdown_threshold(self, threshold: f64) -> Self
pub fn breakdown_threshold(self, threshold: f64) -> Self
Set the breakdown threshold
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set the random state
Sourcepub fn analyze_graph_breakdown(
&self,
X: &ArrayView2<'_, f64>,
) -> Result<HashMap<String, BreakdownResult>, SklearsError>
pub fn analyze_graph_breakdown( &self, X: &ArrayView2<'_, f64>, ) -> Result<HashMap<String, BreakdownResult>, SklearsError>
Analyze breakdown points for robust graph construction
Trait Implementations§
Source§impl Clone for BreakdownPointAnalysis
impl Clone for BreakdownPointAnalysis
Source§fn clone(&self) -> BreakdownPointAnalysis
fn clone(&self) -> BreakdownPointAnalysis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BreakdownPointAnalysis
impl RefUnwindSafe for BreakdownPointAnalysis
impl Send for BreakdownPointAnalysis
impl Sync for BreakdownPointAnalysis
impl Unpin for BreakdownPointAnalysis
impl UnwindSafe for BreakdownPointAnalysis
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> 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>
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