topNList-class {recommenderlab} | R Documentation |
Recommendations a Top-N list.
Objects can be created by
predict
with a recommender model and a new data.
items
:"list"
.
Each represents a top-N recommendation (an integer vector)
with item IDs
(column numbers in the rating matrix). The items are ordered in
each vector.itemLabels
:"character"
n
:"integer"
specifying the
number of items in each recommendation. Note that the actual number
on recommended items can be less depending on the data and the used
algorithm.signature(x = "topNList")
: returns only the best
n recommendations (second argument is n which defaults to 10). signature(from = "topNList", to = "dgTMatrix")
signature(from = "topNList", to = "dgCMatrix")
signature(from = "topNList", to = "ngCMatrix")
signature(from = "topNList", to = "matrix")
signature(from = "topNList", to = "list")
signature(x = "topNList")
: in how many top-N
does each item occur? signature(x = "topNList")
: number of recommendations per user. signature(object = "topNList")