pub struct Data2VecResult {
pub loss: f32,
pub n_masked: usize,
pub accuracy_at_1: f32,
}Expand description
Output of a single data2vec loss computation.
Fields§
§loss: f32Mean Huber loss over all masked positions and feature dimensions.
n_masked: usizeNumber of token positions that were masked (contributed to the loss).
accuracy_at_1: f32Not meaningful for regression; always 0.0.
Trait Implementations§
Source§impl Clone for Data2VecResult
impl Clone for Data2VecResult
Source§fn clone(&self) -> Data2VecResult
fn clone(&self) -> Data2VecResult
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 moreAuto Trait Implementations§
impl Freeze for Data2VecResult
impl RefUnwindSafe for Data2VecResult
impl Send for Data2VecResult
impl Sync for Data2VecResult
impl Unpin for Data2VecResult
impl UnsafeUnpin for Data2VecResult
impl UnwindSafe for Data2VecResult
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