Struct sbr::models::ewma::ImplicitEWMAModel [−][src]
pub struct ImplicitEWMAModel { /* fields omitted */ }
Implicit EWMA model.
Methods
impl ImplicitEWMAModel
[src]
impl ImplicitEWMAModel
pub fn fit(
&mut self,
interactions: &CompressedInteractions
) -> Result<f32, FittingError>
[src]
pub fn fit(
&mut self,
interactions: &CompressedInteractions
) -> Result<f32, FittingError>
Fit the EWMA model.
Trait Implementations
impl Debug for ImplicitEWMAModel
[src]
impl Debug for ImplicitEWMAModel
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ImplicitEWMAModel
[src]
impl Clone for ImplicitEWMAModel
fn clone(&self) -> ImplicitEWMAModel
[src]
fn clone(&self) -> ImplicitEWMAModel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl OnlineRankingModel for ImplicitEWMAModel
[src]
impl OnlineRankingModel for ImplicitEWMAModel
type UserRepresentation = ImplicitUser
The representation the model computes from past interactions.
fn user_representation(
&self,
item_ids: &[ItemId]
) -> Result<Self::UserRepresentation, PredictionError>
[src]
fn user_representation(
&self,
item_ids: &[ItemId]
) -> Result<Self::UserRepresentation, PredictionError>
Compute a user representation from past interactions.
fn predict(
&self,
user: &Self::UserRepresentation,
item_ids: &[ItemId]
) -> Result<Vec<f32>, PredictionError>
[src]
fn predict(
&self,
user: &Self::UserRepresentation,
item_ids: &[ItemId]
) -> Result<Vec<f32>, PredictionError>
Given a user representation, rank item_ids
according to how likely the user is to interact with them in the future. Read more
Auto Trait Implementations
impl Send for ImplicitEWMAModel
impl Send for ImplicitEWMAModel
impl Sync for ImplicitEWMAModel
impl Sync for ImplicitEWMAModel