pub struct CpuFallbackScorer;Expand description
CPU-side Fellegi-Sunter scorer wrapping zer_compare::FellegiSunterScorer.
Trait Implementations§
Source§impl Clone for CpuFallbackScorer
impl Clone for CpuFallbackScorer
Source§fn clone(&self) -> CpuFallbackScorer
fn clone(&self) -> CpuFallbackScorer
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 moreSource§impl Scorer for CpuFallbackScorer
impl Scorer for CpuFallbackScorer
Source§fn score(&self, vector: &ComparisonVector, params: &ModelParams) -> ScoredPair
fn score(&self, vector: &ComparisonVector, params: &ModelParams) -> ScoredPair
Score a single pair, always CPU, cheap dot product.
Source§fn score_batch(
&self,
batch: &ComparisonBatch,
params: &ModelParams,
) -> Vec<ScoredPair>
fn score_batch( &self, batch: &ComparisonBatch, params: &ModelParams, ) -> Vec<ScoredPair>
Score a batch using the field-major
ComparisonBatch.fn estimate_params( &self, batch: &ComparisonBatch, init: Option<ModelParams>, max_iter: usize, ) -> ZerResult<ModelParams>
Auto Trait Implementations§
impl Freeze for CpuFallbackScorer
impl RefUnwindSafe for CpuFallbackScorer
impl Send for CpuFallbackScorer
impl Sync for CpuFallbackScorer
impl Unpin for CpuFallbackScorer
impl UnsafeUnpin for CpuFallbackScorer
impl UnwindSafe for CpuFallbackScorer
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,
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