Struct oozie::recommender::KNNUserRecommender [] [src]

pub struct KNNUserRecommender<'a, D: DataHandler + 'a> { /* fields omitted */ }

An user based nearest neighbors recommender

Methods

impl<'a, D: DataHandler + 'a> KNNUserRecommender<'a, D>
[src]

Initializes a new recommender from a data handler, computes and stores the similarities between users

Adds an user to the data handler

Adds an item to the data handler

Adds a rating to the data handler, it computes the similarities for the user who added a new rating

Trait Implementations

impl<'a, D: DataHandler + 'a> Recommender for KNNUserRecommender<'a, D>
[src]

Predicts the rating for an user and item averaging the ratings of the k users most similar to the user rating the item.

Generates a sorted vector of item IDs by a predicted rating which is computed in the same way that the predict method. It ignores items that have a predicted rating of -1.0