pub struct CohortDriftReport {
pub n_entities: usize,
pub mean_drift_l2: f32,
pub median_drift_l2: f32,
pub std_drift_l2: f32,
pub centroid_drift: DriftReport,
pub dispersion_t1: f32,
pub dispersion_t2: f32,
pub dispersion_change: f32,
pub convergence_score: f32,
pub top_dimensions: Vec<(usize, f32)>,
pub outliers: Vec<CohortOutlier>,
}Expand description
Full cohort drift analysis between two time points.
Fields§
§n_entities: usizeNumber of entities successfully analyzed (with data at both t1 and t2).
mean_drift_l2: f32Mean individual L2 drift magnitude across the cohort.
median_drift_l2: f32Median individual L2 drift magnitude.
std_drift_l2: f32Standard deviation of individual L2 drift magnitudes.
centroid_drift: DriftReportDrift of the cohort centroid between t1 and t2.
dispersion_t1: f32Mean distance from entities to centroid at t1.
dispersion_t2: f32Mean distance from entities to centroid at t2.
dispersion_change: f32Change in dispersion: positive = diverging, negative = converging.
convergence_score: f32Cosine alignment of individual drift vectors (0 = random, 1 = all same direction).
top_dimensions: Vec<(usize, f32)>Top-N most changed dimensions aggregated across the cohort.
outliers: Vec<CohortOutlier>Entities flagged as outliers (|z-score| > 2.0).
Trait Implementations§
Source§impl Clone for CohortDriftReport
impl Clone for CohortDriftReport
Source§fn clone(&self) -> CohortDriftReport
fn clone(&self) -> CohortDriftReport
Returns a copy 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 CohortDriftReport
impl RefUnwindSafe for CohortDriftReport
impl Send for CohortDriftReport
impl Sync for CohortDriftReport
impl Unpin for CohortDriftReport
impl UnwindSafe for CohortDriftReport
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