pub struct Summary {
pub lines: Vec<StatLine>,
}Expand description
Result of evaluating a summary plan over an Accumulated.
lines.len() matches the plan length; for the canonical pycocotools
detection summary built by summarize_detection, that’s 12 lines
in the order [AP, AP50, AP75, AP_S, AP_M, AP_L, AR_1, AR_10, AR_100, AR_S, AR_M, AR_L]. For custom plans evaluated via
summarize_with, lines mirrors the request order.
Fields§
§lines: Vec<StatLine>One entry per request in the evaluated plan, paired with slicing metadata.
Implementations§
Source§impl Summary
impl Summary
Sourcepub fn stats(&self) -> Vec<f64>
pub fn stats(&self) -> Vec<f64>
Numeric values in plan order. Equivalent to
lines.iter().map(|l| l.value).collect().
Sourcepub fn pretty_lines(&self) -> Vec<String>
pub fn pretty_lines(&self) -> Vec<String>
Render the canonical pycocotools text table (12 lines, each in
the upstream Average Precision (AP) @[ IoU=... | area=... | maxDets=... ] = 0.xxx shape). Returned as a Vec<String>; the
caller decides whether to print, log, or test against it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.