pub struct PosteriorDecode {
pub path: Vec<usize>,
pub marginal: Vec<f64>,
pub gamma: Vec<f64>,
pub expected_correct: f64,
}Expand description
Result of posterior (max-marginal) decoding.
Fields§
§path: Vec<usize>Per-position max-marginal labels, length T.
marginal: Vec<f64>The marginal posterior of the chosen label at each position, length T.
gamma: Vec<f64>State posteriors γ (T × n_states, row-major) for downstream use.
expected_correct: f64Expected number of correctly-labelled positions, Σ_t γ_t(ŷ_t).
Trait Implementations§
Source§impl Clone for PosteriorDecode
impl Clone for PosteriorDecode
Source§fn clone(&self) -> PosteriorDecode
fn clone(&self) -> PosteriorDecode
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 PosteriorDecode
impl RefUnwindSafe for PosteriorDecode
impl Send for PosteriorDecode
impl Sync for PosteriorDecode
impl Unpin for PosteriorDecode
impl UnsafeUnpin for PosteriorDecode
impl UnwindSafe for PosteriorDecode
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