topNList-class {recommenderlab}R Documentation

Class "topNList": Top-N List

Description

Recommendations a Top-N list.

Objects from the Class

Objects can be created by predict with a recommender model and a new data.

Slots

items:
Object of class "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:
Object of class "character"
n:
Object of class "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.

Methods

bestN
signature(x = "topNList"): returns only the best n recommendations (second argument is n which defaults to 10).
coerce
signature(from = "topNList", to = "dgTMatrix")
coerce
signature(from = "topNList", to = "dgCMatrix")
coerce
signature(from = "topNList", to = "ngCMatrix")
coerce
signature(from = "topNList", to = "matrix")
coerce
signature(from = "topNList", to = "list")
colCounts
signature(x = "topNList"): in how many top-N does each item occur?
rowCounts
signature(x = "topNList"): number of recommendations per user.
show
signature(object = "topNList")

See Also

evaluate


[Package recommenderlab version 0.1-0 Index]