Struct ValidationMetrics
pub struct ValidationMetrics {
pub band_table: Vec<(String, u32, f64)>,
pub auc_default: Option<f64>,
pub precision_at_10: Option<f64>,
pub precision_at_red: Option<f64>,
pub implicated_files: u32,
pub linked_defects: u32,
pub sample_dates: Vec<String>,
pub excluded_no_data: u32,
}Expand description
Validation-report metrics: does HEAD’s structural risk predict where the
mined defects landed? Presentation follows the project’s honesty framing —
association, not causation; every number carries its n.
Fields§
§band_table: Vec<(String, u32, f64)>(band, defect_changes, share) — share of defect-introducing changes
that landed in files at each code-health band at the time.
auc_default: Option<f64>AUC of HEAD’s structural_risk against the defect-implicated-file
labels, using the default (untuned) weights. None when either class
(implicated / not) is empty.
precision_at_10: Option<f64>Precision among the 10 highest-risk files. None when fewer than 10
files have health data.
precision_at_red: Option<f64>Precision among the files banded red at HEAD. None when zero files
are red.
implicated_files: u32Distinct files touched by at least one defect-introducing commit.
linked_defects: u32Distinct defect-introducing commits (the SZZ links’ defect side, deduplicated).
sample_dates: Vec<String>RFC 3339 dates of the historical band-scan samples used to look up “health at the time” for each defect-introducing commit.
excluded_no_data: u32Defect-introducing commits excluded because no health sample existed at or before their date (and none is the earliest sample either).
Trait Implementations§
§impl Clone for ValidationMetrics
impl Clone for ValidationMetrics
§fn clone(&self) -> ValidationMetrics
fn clone(&self) -> ValidationMetrics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ValidationMetrics
impl Debug for ValidationMetrics
§impl Default for ValidationMetrics
impl Default for ValidationMetrics
§fn default() -> ValidationMetrics
fn default() -> ValidationMetrics
§impl<'de> Deserialize<'de> for ValidationMetrics
impl<'de> Deserialize<'de> for ValidationMetrics
§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>,
§impl PartialEq for ValidationMetrics
impl PartialEq for ValidationMetrics
§impl Serialize for ValidationMetrics
impl Serialize for ValidationMetrics
impl StructuralPartialEq for ValidationMetrics
Auto Trait Implementations§
impl Freeze for ValidationMetrics
impl RefUnwindSafe for ValidationMetrics
impl Send for ValidationMetrics
impl Sync for ValidationMetrics
impl Unpin for ValidationMetrics
impl UnsafeUnpin for ValidationMetrics
impl UnwindSafe for ValidationMetrics
Blanket Implementations§
impl<T> Allocation for T
impl<T> Allocation for T
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
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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