pub struct ObservatoryReport {Show 15 fields
pub schema_version: u32,
pub evidence_version: String,
pub corpus_name: String,
pub corpus_version: String,
pub model: String,
pub backend_kind: String,
pub identity: RunIdentity,
pub scores: Vec<ObservatoryFixtureScore>,
pub mean_wer: f64,
pub mean_cer: f64,
pub silence_false_positives: u32,
pub mean_repetition_ratio: f64,
pub mean_length_ratio: f64,
pub scenario_mean_wer: BTreeMap<String, f64>,
pub notes: Option<String>,
}Expand description
Versioned observatory JSON report (no raw hypotheses or private paths).
Fields§
§schema_version: u32§evidence_version: String§corpus_name: String§corpus_version: String§model: String§backend_kind: String§identity: RunIdentity§scores: Vec<ObservatoryFixtureScore>§mean_wer: f64§mean_cer: f64§silence_false_positives: u32§mean_repetition_ratio: f64§mean_length_ratio: f64§scenario_mean_wer: BTreeMap<String, f64>Scenario → mean WER.
notes: Option<String>Implementations§
Source§impl ObservatoryReport
impl ObservatoryReport
pub fn from_scores( corpus: &ObservatoryCorpus, model: &str, backend_kind: &str, scores: Vec<ObservatoryFixtureScore>, identity: RunIdentity, ) -> Self
pub fn load(path: &Path) -> Result<Self>
pub fn to_json_pretty(&self) -> Result<String>
Sourcepub fn to_markdown_scorecard(&self) -> String
pub fn to_markdown_scorecard(&self) -> String
Human-readable Markdown scorecard (deterministic section order).
Trait Implementations§
Source§impl Clone for ObservatoryReport
impl Clone for ObservatoryReport
Source§fn clone(&self) -> ObservatoryReport
fn clone(&self) -> ObservatoryReport
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 ObservatoryReport
impl Debug for ObservatoryReport
Source§impl<'de> Deserialize<'de> for ObservatoryReport
impl<'de> Deserialize<'de> for ObservatoryReport
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
Source§impl PartialEq for ObservatoryReport
impl PartialEq for ObservatoryReport
Source§impl Serialize for ObservatoryReport
impl Serialize for ObservatoryReport
impl StructuralPartialEq for ObservatoryReport
Auto Trait Implementations§
impl Freeze for ObservatoryReport
impl RefUnwindSafe for ObservatoryReport
impl Send for ObservatoryReport
impl Sync for ObservatoryReport
impl Unpin for ObservatoryReport
impl UnsafeUnpin for ObservatoryReport
impl UnwindSafe for ObservatoryReport
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>,
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