pub struct OutputCorrelationAnalyzer { /* private fields */ }Expand description
Output Correlation Analyzer
Analyzes correlations and dependencies between different outputs in multi-output data. Provides various correlation measures and dependency analysis tools.
§Examples
use sklears_multioutput::correlation::{OutputCorrelationAnalyzer, CorrelationType};
// Use SciRS2-Core for arrays and random number generation (SciRS2 Policy)
use scirs2_core::ndarray::array;
use std::collections::HashMap;
let mut outputs = HashMap::new();
outputs.insert("task1".to_string(), array![[1.0, 2.0], [2.0, 3.0], [3.0, 1.0]]);
outputs.insert("task2".to_string(), array![[0.5, 1.0], [1.0, 1.5], [1.5, 0.5]]);
let analyzer = OutputCorrelationAnalyzer::new()
.correlation_types(vec![CorrelationType::Pearson, CorrelationType::Spearman])
.include_cross_task(true);
let analysis = analyzer.analyze(&outputs).unwrap();Implementations§
Source§impl OutputCorrelationAnalyzer
impl OutputCorrelationAnalyzer
Sourcepub fn correlation_types(self, types: Vec<CorrelationType>) -> Self
pub fn correlation_types(self, types: Vec<CorrelationType>) -> Self
Set correlation types to compute
Sourcepub fn include_cross_task(self, include: bool) -> Self
pub fn include_cross_task(self, include: bool) -> Self
Set whether to include cross-task correlations
Sourcepub fn include_within_task(self, include: bool) -> Self
pub fn include_within_task(self, include: bool) -> Self
Set whether to include within-task correlations
Sourcepub fn min_correlation_threshold(self, threshold: Float) -> Self
pub fn min_correlation_threshold(self, threshold: Float) -> Self
Set minimum correlation threshold for reporting
Sourcepub fn compute_partial_correlations(self, compute: bool) -> Self
pub fn compute_partial_correlations(self, compute: bool) -> Self
Set whether to compute partial correlations
Trait Implementations§
Source§impl Clone for OutputCorrelationAnalyzer
impl Clone for OutputCorrelationAnalyzer
Source§fn clone(&self) -> OutputCorrelationAnalyzer
fn clone(&self) -> OutputCorrelationAnalyzer
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 moreSource§impl Debug for OutputCorrelationAnalyzer
impl Debug for OutputCorrelationAnalyzer
Auto Trait Implementations§
impl Freeze for OutputCorrelationAnalyzer
impl RefUnwindSafe for OutputCorrelationAnalyzer
impl Send for OutputCorrelationAnalyzer
impl Sync for OutputCorrelationAnalyzer
impl Unpin for OutputCorrelationAnalyzer
impl UnwindSafe for OutputCorrelationAnalyzer
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