Learn R Programming

RMOA (version 1.1.0)

summary.MOA_recommender: Summary statistics of a MOA recommender

Description

Summary statistics of a MOA recommender

Usage

# S3 method for MOA_recommender
summary(object, ...)

Value

the form of the return value depends on the type of MOA model

Arguments

object

an object of class MOA_recommender

...

other arguments, currently not used yet

Examples

Run this code
require(recommenderlab)
data(MovieLense)
x <- getData.frame(MovieLense)
x$itemid <- as.integer(as.factor(x$item))
x$userid <- as.integer(as.factor(x$user))
x$rating <- as.numeric(x$rating)
x <- head(x, 2000)

movielensestream <- datastream_dataframe(data=x)
movielensestream$get_points(3)

ctrl <- MOAoptions(model = "BRISMFPredictor", features = 10)
brism <- BRISMFPredictor(control=ctrl)
mymodel <- trainMOA(model = brism, rating ~ userid + itemid, 
 data = movielensestream, chunksize = 1000, trace=TRUE)

overview <- summary(mymodel$model)
str(overview)
predict(mymodel, head(x, 10), type = "response")

Run the code above in your browser using DataLab