predict | R Documentation |
Generate predictions on any of the previously trained models.
model |
A previously trained model, see |
Round |
object of class |
All unrated items are predicted and the entire matrix is returned with the new ratings.
rrecsys
, IBclass
, SVDclass
.
data("mlLatest100k") smallMl <- mlLatest100k[1:50, 1:100] exExpl <- defineData(smallMl) model1exp <- rrecsys(exExpl, alg = "funk", k = 10, learningRate = 0.01, regCoef = 0.001) pre1 <- predict(model1exp, Round = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.