pub struct StatisticalSummary {Show 13 fields
pub dataset_name: String,
pub n_samples: usize,
pub n_features: usize,
pub feature_statistics: Vec<FeatureStatistics>,
pub target_statistics: Option<TargetStatistics>,
pub correlation_matrix: Vec<Vec<f64>>,
pub feature_correlations: HashMap<String, f64>,
pub data_quality_score: f64,
pub missing_data_pattern: String,
pub outlier_summary: HashMap<String, usize>,
pub distribution_types: HashMap<String, String>,
pub generation_timestamp: String,
pub metadata: HashMap<String, String>,
}Expand description
Complete dataset statistical summary
Fields§
§dataset_name: String§n_samples: usize§n_features: usize§feature_statistics: Vec<FeatureStatistics>§target_statistics: Option<TargetStatistics>§correlation_matrix: Vec<Vec<f64>>§feature_correlations: HashMap<String, f64>§data_quality_score: f64§missing_data_pattern: String§outlier_summary: HashMap<String, usize>§distribution_types: HashMap<String, String>§generation_timestamp: String§metadata: HashMap<String, String>Implementations§
Source§impl StatisticalSummary
impl StatisticalSummary
Sourcepub fn new(dataset_name: String, n_samples: usize, n_features: usize) -> Self
pub fn new(dataset_name: String, n_samples: usize, n_features: usize) -> Self
Create a new statistical summary
Sourcepub fn add_feature_stats(&mut self, stats: FeatureStatistics)
pub fn add_feature_stats(&mut self, stats: FeatureStatistics)
Add feature statistics
Sourcepub fn set_target_stats(&mut self, stats: TargetStatistics)
pub fn set_target_stats(&mut self, stats: TargetStatistics)
Set target statistics
Sourcepub fn calculate_quality_score(&mut self)
pub fn calculate_quality_score(&mut self)
Calculate data quality score (0-100)
Trait Implementations§
Source§impl Clone for StatisticalSummary
impl Clone for StatisticalSummary
Source§fn clone(&self) -> StatisticalSummary
fn clone(&self) -> StatisticalSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StatisticalSummary
impl Debug for StatisticalSummary
Source§impl<'de> Deserialize<'de> for StatisticalSummary
impl<'de> Deserialize<'de> for StatisticalSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StatisticalSummary
impl Display for StatisticalSummary
Auto Trait Implementations§
impl Freeze for StatisticalSummary
impl RefUnwindSafe for StatisticalSummary
impl Send for StatisticalSummary
impl Sync for StatisticalSummary
impl Unpin for StatisticalSummary
impl UnsafeUnpin for StatisticalSummary
impl UnwindSafe for StatisticalSummary
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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