pub struct RelReport {
pub examples: usize,
pub pairs: usize,
pub classes: usize,
pub first_loss: f64,
pub last_loss: f64,
pub train_acc: f64,
pub train_acc_positive: f64,
pub dev_examples: usize,
pub dev_acc: f64,
pub dev_acc_positive: f64,
}Fields§
§examples: usize§pairs: usize§classes: usize§first_loss: f64§last_loss: f64§train_acc: f64accuracy over scored pairs after training
train_acc_positive: f64accuracy over only the pairs that carry a real relation (not none) — the metric that matters,
since none dominates
dev_examples: usizeheld-out examples (never trained on)
dev_acc: f64accuracy on held-out pairs — the only number that says anything about generalisation. Train accuracy saturates trivially here: the type mask plus one-relation-per-sentence generation leaves little ambiguity, so a perfect train score is memorisation, not skill.
dev_acc_positive: f64Trait Implementations§
Auto Trait Implementations§
impl Freeze for RelReport
impl RefUnwindSafe for RelReport
impl Send for RelReport
impl Sync for RelReport
impl Unpin for RelReport
impl UnsafeUnpin for RelReport
impl UnwindSafe for RelReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.