Struct oozie::recommender::KNNItemRecommender [] [src]

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

An item based nearest neighbors recommender

Methods

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

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

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 item which had a new rating

Trait Implementations

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

Predicts a rating given an user and an 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