#[non_exhaustive]pub struct MultiConfidenceMetrics {
pub confidence_level_metrics: Vec<ConfidenceLevelMetrics>,
pub confidence_level_metrics_exact: Vec<ConfidenceLevelMetrics>,
pub auprc: f32,
pub estimated_calibration_error: f32,
pub auprc_exact: f32,
pub estimated_calibration_error_exact: f32,
pub metrics_type: MetricsType,
/* private fields */
}Expand description
Metrics across multiple confidence levels.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.confidence_level_metrics: Vec<ConfidenceLevelMetrics>Metrics across confidence levels with fuzzy matching enabled.
confidence_level_metrics_exact: Vec<ConfidenceLevelMetrics>Metrics across confidence levels with only exact matching.
auprc: f32The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds.
estimated_calibration_error: f32The Estimated Calibration Error (ECE) of the confidence of the predicted entities.
auprc_exact: f32The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.
estimated_calibration_error_exact: f32The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only.
metrics_type: MetricsTypeThe metrics type for the label.
Implementations§
Source§impl MultiConfidenceMetrics
impl MultiConfidenceMetrics
pub fn new() -> Self
Sourcepub fn set_confidence_level_metrics<T, V>(self, v: T) -> Self
pub fn set_confidence_level_metrics<T, V>(self, v: T) -> Self
Sets the value of confidence_level_metrics.
Sourcepub fn set_confidence_level_metrics_exact<T, V>(self, v: T) -> Self
pub fn set_confidence_level_metrics_exact<T, V>(self, v: T) -> Self
Sets the value of confidence_level_metrics_exact.
Sourcepub fn set_estimated_calibration_error<T: Into<f32>>(self, v: T) -> Self
pub fn set_estimated_calibration_error<T: Into<f32>>(self, v: T) -> Self
Sets the value of estimated_calibration_error.
Sourcepub fn set_auprc_exact<T: Into<f32>>(self, v: T) -> Self
pub fn set_auprc_exact<T: Into<f32>>(self, v: T) -> Self
Sets the value of auprc_exact.
Sourcepub fn set_estimated_calibration_error_exact<T: Into<f32>>(self, v: T) -> Self
pub fn set_estimated_calibration_error_exact<T: Into<f32>>(self, v: T) -> Self
Sets the value of estimated_calibration_error_exact.
Sourcepub fn set_metrics_type<T: Into<MetricsType>>(self, v: T) -> Self
pub fn set_metrics_type<T: Into<MetricsType>>(self, v: T) -> Self
Sets the value of metrics_type.
Trait Implementations§
Source§impl Clone for MultiConfidenceMetrics
impl Clone for MultiConfidenceMetrics
Source§fn clone(&self) -> MultiConfidenceMetrics
fn clone(&self) -> MultiConfidenceMetrics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more