pub struct LogProbabilityScorer;Expand description
Interpret raw weights as probabilities and combine them in log space.
Trait Implementations§
Source§impl Clone for LogProbabilityScorer
impl Clone for LogProbabilityScorer
Source§fn clone(&self) -> LogProbabilityScorer
fn clone(&self) -> LogProbabilityScorer
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 moreimpl Copy for LogProbabilityScorer
Source§impl Debug for LogProbabilityScorer
impl Debug for LogProbabilityScorer
Source§impl Default for LogProbabilityScorer
impl Default for LogProbabilityScorer
Source§fn default() -> LogProbabilityScorer
fn default() -> LogProbabilityScorer
Returns the “default value” for a type. Read more
Source§impl WeightScorer for LogProbabilityScorer
impl WeightScorer for LogProbabilityScorer
Source§fn rule_score(&self, weight: f64) -> f64
fn rule_score(&self, weight: f64) -> f64
Convert one raw rule weight into this scorer’s representation.
Source§fn score_to_weight(&self, score: f64) -> f64
fn score_to_weight(&self, score: f64) -> f64
Convert a final score back to a conventional raw weight.
Auto Trait Implementations§
impl Freeze for LogProbabilityScorer
impl RefUnwindSafe for LogProbabilityScorer
impl Send for LogProbabilityScorer
impl Sync for LogProbabilityScorer
impl Unpin for LogProbabilityScorer
impl UnsafeUnpin for LogProbabilityScorer
impl UnwindSafe for LogProbabilityScorer
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