pub enum RecommendStrategy {
AverageVector,
BestScore,
SumScores,
}Expand description
RECOMMEND … STRATEGY scoring strategy.
Variants§
AverageVector
average_vector — score against the averaged example vectors.
BestScore
best_score — score against the most similar example.
SumScores
sum_scores — sum similarity across all examples.
Trait Implementations§
Source§impl Clone for RecommendStrategy
impl Clone for RecommendStrategy
Source§fn clone(&self) -> RecommendStrategy
fn clone(&self) -> RecommendStrategy
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 RecommendStrategy
Source§impl Debug for RecommendStrategy
impl Debug for RecommendStrategy
impl Eq for RecommendStrategy
Source§impl PartialEq for RecommendStrategy
impl PartialEq for RecommendStrategy
impl StructuralPartialEq for RecommendStrategy
Auto Trait Implementations§
impl Freeze for RecommendStrategy
impl RefUnwindSafe for RecommendStrategy
impl Send for RecommendStrategy
impl Sync for RecommendStrategy
impl Unpin for RecommendStrategy
impl UnsafeUnpin for RecommendStrategy
impl UnwindSafe for RecommendStrategy
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