pub struct EmReduceOutput {
pub m_counts: Vec<f32>,
pub u_counts: Vec<f32>,
pub total_match: f32,
pub total_nonmatch: f32,
}Expand description
Raw M-step counts returned from one reduction pass.
Normalize to get updated Fellegi-Sunter probability tables:
m[f][l] = (m_counts[f*4 + l] + smoothing) / (total_match + 4*smoothing)
u[f][l] = (u_counts[f*4 + l] + smoothing) / (total_nonmatch + 4*smoothing)Fields§
§m_counts: Vec<f32>Unnormalized m-counts: m_counts[f*4 + l] = Σ_pairs P(match) × 1[level==l].
Length is n_fields * 4.
u_counts: Vec<f32>Unnormalized u-counts: u_counts[f*4 + l] = Σ_pairs P(nonmatch) × 1[level==l].
Length is n_fields * 4.
total_match: f32Σ P(match) across all pairs.
total_nonmatch: f32Σ (1 - P(match)) across all pairs.
Auto Trait Implementations§
impl Freeze for EmReduceOutput
impl RefUnwindSafe for EmReduceOutput
impl Send for EmReduceOutput
impl Sync for EmReduceOutput
impl Unpin for EmReduceOutput
impl UnsafeUnpin for EmReduceOutput
impl UnwindSafe for EmReduceOutput
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> 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