Last chance! 50% off unlimited learning
Sale ends in
weclat(data, parameter = NULL, control = NULL)
transactions
.ASparameter
(default
values: support = 0.1
, minlen = 1L
, and
maxlen = 5L
) or a named list with corresponding components.AScontrol
(default
values: verbose = TRUE
) or a named list with corresponding
components.itemsets
. Note that weighted support is returned in
quality
as column support
.
weight
in transactionInfo()
.
The weighted support of an itemset is the sum of the weights of the
transactions that contain the itemset. An itemset is frequent if
its weighted support is equal or greater than the threshold specified
by support
(assuming that the weights sum to one). Note that ECLAT only mines (weighted) frequent itemsets. Weighted
association rules can be created using ruleInduction()
.
transactions
,
function
ruleInduction
,
eclat
data(SunBai)
SunBai
## weights are stored in transactionInfo
transactionInfo(SunBai)
## mine weighted support itemsets using transaction support in SunBai
s <- weclat(SunBai, parameter = list(support = 0.3),
control = list(verbose = TRUE))
inspect(sort(s))
## create rules using weighted support (satisfying a minimum
## weighted confidence of 90%).
r <- ruleInduction(s, confidence = .9)
inspect(r)
Run the code above in your browser using DataLab