pub struct AnomalyDetectionMetrics {
pub true_positives: usize,
pub false_positives: usize,
pub false_negatives: usize,
pub true_negatives: usize,
pub precision: f64,
pub recall: f64,
pub f1: f64,
}Expand description
Metrics for evaluating an external anomaly detector against ground-truth labels.
Fields§
§true_positives: usizeEvents correctly identified as anomalies.
false_positives: usizeEvents incorrectly identified as anomalies.
false_negatives: usizeAnomaly events missed by the detector.
true_negatives: usizeTrue negatives: correctly identified normal events.
precision: f64Precision = TP / (TP + FP).
recall: f64Recall = TP / (TP + FN).
f1: f64F1 = 2 * precision * recall / (precision + recall).
Trait Implementations§
Source§impl Clone for AnomalyDetectionMetrics
impl Clone for AnomalyDetectionMetrics
Source§fn clone(&self) -> AnomalyDetectionMetrics
fn clone(&self) -> AnomalyDetectionMetrics
Returns a duplicate 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 moreSource§impl Debug for AnomalyDetectionMetrics
impl Debug for AnomalyDetectionMetrics
Auto Trait Implementations§
impl Freeze for AnomalyDetectionMetrics
impl RefUnwindSafe for AnomalyDetectionMetrics
impl Send for AnomalyDetectionMetrics
impl Sync for AnomalyDetectionMetrics
impl Unpin for AnomalyDetectionMetrics
impl UnsafeUnpin for AnomalyDetectionMetrics
impl UnwindSafe for AnomalyDetectionMetrics
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