为 CSPADE 算法运行以下方法时,我在 R 中遇到错误(在事务中查找关联规则):
x <- read_baskets(con = system.file("misc", "zaki.txt", package = "arulesSequences"), info = c("sequenceID","eventID","SIZE"))
s1 <- cspade(x, parameter = list(support = 0.4), control = list(verbose = TRUE))
parameter specification:
support : 0.4
maxsize : 10
maxlen : 10
algorithmic control:
bfstype : FALSE
verbose : TRUE
summary : FALSE
tidLists : FALSE
preprocessing ...
Error in typeof(x) :
no slot of name "transactionInfo" for this object of class "transactions"
“x”是一个事务对象,它被成功创建,但由于某种原因,cspade 方法不起作用(即使在其文档中提供的经典数据集上也是如此)