sklears_feature_selection/evaluation/
diversity_measures.rs1use sklears_core::error::{Result as SklResult, SklearsError};
7
8#[derive(Debug, Clone)]
10pub struct FeatureSetDiversityMeasures;
11
12impl FeatureSetDiversityMeasures {
13 pub fn compute_diversity(_feature_indices: &[usize]) -> SklResult<f64> {
15 Err(SklearsError::NotImplemented(
16 "FeatureSetDiversityMeasures::compute_diversity is not yet implemented".to_string(),
17 ))
18 }
19}
20
21#[derive(Debug, Clone)]
23pub struct DiversityIndex;
24
25impl DiversityIndex {
26 pub fn compute(_features: &[usize]) -> SklResult<f64> {
28 Err(SklearsError::NotImplemented(
29 "DiversityIndex::compute is not yet implemented".to_string(),
30 ))
31 }
32}
33
34#[derive(Debug, Clone)]
36pub struct FeatureSpacing;
37
38impl FeatureSpacing {
39 pub fn compute_spacing(_features: &[usize]) -> SklResult<f64> {
41 Err(SklearsError::NotImplemented(
42 "FeatureSpacing::compute_spacing is not yet implemented".to_string(),
43 ))
44 }
45}
46
47#[derive(Debug, Clone)]
49pub struct DiversityMatrix;
50
51impl DiversityMatrix {
52 pub fn compute(_features: &[usize]) -> SklResult<Vec<Vec<f64>>> {
54 Err(SklearsError::NotImplemented(
55 "DiversityMatrix::compute is not yet implemented".to_string(),
56 ))
57 }
58}
59
60#[derive(Debug, Clone)]
62pub struct EnsembleDiversity;
63
64impl EnsembleDiversity {
65 pub fn compute_ensemble_diversity(_feature_sets: &[Vec<usize>]) -> SklResult<f64> {
67 Err(SklearsError::NotImplemented(
68 "EnsembleDiversity::compute_ensemble_diversity is not yet implemented".to_string(),
69 ))
70 }
71}