pub struct VisualNERMetrics {Show 16 fields
pub text_precision: f64,
pub text_recall: f64,
pub text_f1: f64,
pub mean_iou: f64,
pub box_precision: f64,
pub box_recall: f64,
pub box_f1: f64,
pub e2e_precision: f64,
pub e2e_recall: f64,
pub e2e_f1: f64,
pub per_type: HashMap<String, VisualTypeMetrics>,
pub num_predicted: usize,
pub num_gold: usize,
pub text_matches: usize,
pub box_matches: usize,
pub e2e_matches: usize,
}Expand description
Visual NER evaluation metrics.
Fields§
§text_precision: f64Text-only precision
text_recall: f64Text-only recall
text_f1: f64Text-only F1
mean_iou: f64Mean IoU across matched boxes
box_precision: f64Box precision (boxes above IoU threshold)
box_recall: f64Box recall
box_f1: f64Box F1
e2e_precision: f64End-to-end precision
e2e_recall: f64End-to-end recall
e2e_f1: f64End-to-end F1
per_type: HashMap<String, VisualTypeMetrics>Metrics per entity type
num_predicted: usizeNumber of predicted entities
num_gold: usizeNumber of gold entities
text_matches: usizeText matches
box_matches: usizeBox matches (IoU >= threshold)
e2e_matches: usizeEnd-to-end matches (text AND box)
Trait Implementations§
Source§impl Clone for VisualNERMetrics
impl Clone for VisualNERMetrics
Source§fn clone(&self) -> VisualNERMetrics
fn clone(&self) -> VisualNERMetrics
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 VisualNERMetrics
impl Debug for VisualNERMetrics
Source§impl<'de> Deserialize<'de> for VisualNERMetrics
impl<'de> Deserialize<'de> for VisualNERMetrics
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 VisualNERMetrics
impl RefUnwindSafe for VisualNERMetrics
impl Send for VisualNERMetrics
impl Sync for VisualNERMetrics
impl Unpin for VisualNERMetrics
impl UnsafeUnpin for VisualNERMetrics
impl UnwindSafe for VisualNERMetrics
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