sklears_feature_selection/evaluation/
statistical_testing.rs1use sklears_core::error::{Result as SklResult, SklearsError};
7
8#[derive(Debug, Clone)]
10pub struct StatisticalTesting;
11
12impl StatisticalTesting {
13 pub fn test_significance(_features: &[usize]) -> SklResult<f64> {
15 Err(SklearsError::NotImplemented(
16 "StatisticalTesting::test_significance is not yet implemented".to_string(),
17 ))
18 }
19}
20
21#[derive(Debug, Clone)]
23pub struct PermutationTests;
24
25impl PermutationTests {
26 pub fn permutation_test(_features: &[usize], _n_permutations: usize) -> SklResult<f64> {
28 Err(SklearsError::NotImplemented(
29 "PermutationTests::permutation_test is not yet implemented".to_string(),
30 ))
31 }
32}
33
34#[derive(Debug, Clone)]
36pub struct SignificanceAnalysis;
37
38impl SignificanceAnalysis {
39 pub fn analyze_significance(_features: &[usize]) -> SklResult<Vec<f64>> {
41 Err(SklearsError::NotImplemented(
42 "SignificanceAnalysis::analyze_significance is not yet implemented".to_string(),
43 ))
44 }
45}
46
47#[derive(Debug, Clone)]
49pub struct MultipleComparisonsCorrection;
50
51impl MultipleComparisonsCorrection {
52 pub fn bonferroni_correction(_p_values: &[f64]) -> SklResult<Vec<f64>> {
54 Err(SklearsError::NotImplemented(
55 "MultipleComparisonsCorrection::bonferroni_correction is not yet implemented"
56 .to_string(),
57 ))
58 }
59
60 pub fn fdr_correction(_p_values: &[f64]) -> SklResult<Vec<f64>> {
62 Err(SklearsError::NotImplemented(
63 "MultipleComparisonsCorrection::fdr_correction is not yet implemented".to_string(),
64 ))
65 }
66}
67
68#[derive(Debug, Clone)]
70pub struct PowerAnalysis;
71
72impl PowerAnalysis {
73 pub fn compute_power(_effect_size: f64, _sample_size: usize) -> SklResult<f64> {
75 Err(SklearsError::NotImplemented(
76 "PowerAnalysis::compute_power is not yet implemented".to_string(),
77 ))
78 }
79}