1

我正在尝试学习序列挖掘,并以wikibooks中的以下代码为例。当示例显示它应该花费不到一秒时,cspade 函数已经花费了 30 多分钟来运行(并且仍在运行)。有谁知道为什么会发生这种情况?

install.packages("arules")
install.packages("arulesSequences")

library(Matrix)
library(arules)
library(arulesSequences)

x <- read_baskets(con = system.file("misc", "zaki.txt", package = "arulesSequences"), info = c("sequenceID","eventID","SIZE"))
as(x, "data.frame")

s1 <- cspade(x, parameter = list(support = 0.4), control = list(verbose =TRUE))
4

0 回答 0