binaryRatingMatrix-class {recommenderlab} | R Documentation |
A matrix to represent binary ratings. Here 1 codes for a possitive rating and 0 codes no positive rating (either no or a negative rating.) This coding is common for market basked data where products are either bought or not.
Objects can be created by calls of the form new("binaryRatingMatrix", data = im)
, where im
is an itemMatrix
as defined in package
arules.
data
:"itemMatrix"
(see package~arules)
Class "ratingMatrix"
, directly.
signature(from = "matrix", to = "binaryRatingMatrix")
signature(from = "itemMatrix", to = "binaryRatingMatrix")
; coerces itemMatrix or transactions from arules to binaryRatingMatrix.signature(from = "binaryRatingMatrix", to = "matrix")
signature(from = "binaryRatingMatrix", to = "dgTMatrix")
signature(from = "binaryRatingMatrix", to = "ngCMatrix")
signature(from = "binaryRatingMatrix", to = "dgCMatrix")
signature(from = "binaryRatingMatrix", to = "itemMatrix")
signature(from = "binaryRatingMatrix", to = "list")