pub struct ThresholdCurve {
pub points: Vec<ThresholdPoint>,
pub optimal_threshold: f64,
pub optimal_f1: f64,
pub optimal_precision: f64,
pub optimal_recall: f64,
pub auc_pr: f64,
pub total_predictions: usize,
pub total_correct: usize,
pub high_precision_threshold: Option<f64>,
pub high_recall_threshold: Option<f64>,
}Expand description
Full threshold analysis results.
Fields§
§points: Vec<ThresholdPoint>Points along the threshold curve
optimal_threshold: f64Optimal threshold (maximizes F1)
optimal_f1: f64F1 at optimal threshold
optimal_precision: f64Precision at optimal threshold
optimal_recall: f64Recall at optimal threshold
auc_pr: f64Area under precision-recall curve (approximation)
total_predictions: usizeTotal predictions analyzed
total_correct: usizeTotal correct predictions (at threshold 0)
high_precision_threshold: Option<f64>High-precision threshold (precision >= 0.95)
high_recall_threshold: Option<f64>High-recall threshold (recall >= 0.95)
Trait Implementations§
Source§impl Clone for ThresholdCurve
impl Clone for ThresholdCurve
Source§fn clone(&self) -> ThresholdCurve
fn clone(&self) -> ThresholdCurve
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 ThresholdCurve
impl Debug for ThresholdCurve
Source§impl<'de> Deserialize<'de> for ThresholdCurve
impl<'de> Deserialize<'de> for ThresholdCurve
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
Auto Trait Implementations§
impl Freeze for ThresholdCurve
impl RefUnwindSafe for ThresholdCurve
impl Send for ThresholdCurve
impl Sync for ThresholdCurve
impl Unpin for ThresholdCurve
impl UnsafeUnpin for ThresholdCurve
impl UnwindSafe for ThresholdCurve
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
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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