recommender-als-0.2.1.1: Recommendations using alternating least squares algorithm

Safe HaskellNone
LanguageHaskell2010

Numeric.Recommender.ALS

Synopsis

Documentation

data ALSParams Source #

Constructors

ALSParams 

Fields

Instances
Show ALSParams Source # 
Instance details

Defined in Numeric.Recommender.ALS

Default ALSParams Source # 
Instance details

Defined in Numeric.Recommender.ALS

Methods

def :: ALSParams #

data ALSModel u i Source #

Constructors

ALSModel 

Fields

buildModel Source #

Arguments

:: (Functor f, Foldable f) 
=> ALSParams 
-> (u -> Int) 
-> (Int -> u) 
-> (i -> Int) 
-> (Int -> i) 
-> f (u, i)

User-item pairs

-> ALSModel u i 

Build recommendations based on users' unrated item choices.

Takes conversion functions to/from Int representation for user supplied data types. Use id if you're already based on them.

The implementation follows the one in the recommenderlab library in CRAN. For further details, see "Large-scale Parallel Collaborative Filtering for the Netflix Prize" by Yunhong Zhou, Dennis Wilkinson, Robert Schreiber and Rong Pan.

buildModelRated Source #

Arguments

:: (Functor f, Foldable f) 
=> ALSParams 
-> (u -> Int) 
-> (Int -> u) 
-> (i -> Int) 
-> (Int -> i) 
-> f (u, (i, Double))

User-item pairs, rated

-> ALSModel u i 

Build model for data with ratings.

recommend Source #

Arguments

:: ALSModel u i 
-> Int

Iterations

-> IntMap [(i, Bool)]