使用R中的arulesSequence包进行序列挖掘

时间:2015-11-12 20:27:15

标签: r data-mining arules sequence-analysis

我正在尝试学习序列挖掘,我从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))

0 个答案:

没有答案