pub struct TrainReport {
pub examples: usize,
pub labels_a: usize,
pub labels_b: usize,
pub epochs: Vec<EpochReport>,
pub train_acc_a: f64,
pub train_acc_b: f64,
pub dev_examples: usize,
pub dev_acc_a: f64,
pub dev_acc_b: f64,
pub dev_acc_a_spans: f64,
}Fields§
§examples: usize§labels_a: usize§labels_b: usize§epochs: Vec<EpochReport>§train_acc_a: f64token-level accuracy of Head A on the training set after the final epoch
train_acc_b: f64§dev_examples: usizeheld-out examples (never trained on)
dev_acc_a: f64the numbers that indicate generalisation rather than memorisation
dev_acc_b: f64§dev_acc_a_spans: f64Head A accuracy over only the tokens that carry an entity label (not O) — the metric that
matters, since O dominates token-level accuracy and inflates it
Trait Implementations§
Source§impl Clone for TrainReport
impl Clone for TrainReport
Source§impl Debug for TrainReport
impl Debug for TrainReport
Auto Trait Implementations§
impl Freeze for TrainReport
impl RefUnwindSafe for TrainReport
impl Send for TrainReport
impl Sync for TrainReport
impl Unpin for TrainReport
impl UnsafeUnpin for TrainReport
impl UnwindSafe for TrainReport
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.