ruleInduction-methods {arulesSequences} | R Documentation |
Induce a set of strong sequence rules from a set of frequent sequences, i.e. which (1) satisfy the minimum confidence threshold and (2) which contain the last element of the generating sequence as the right-hand side (consequent) sequence.
## S4 method for signature 'sequences': ruleInduction(x, transactions, confidence = 0.8, control = NULL)
x |
an object. |
transactions |
currently not used. |
confidence |
a numeric value specifying the minimum confidence threshold. |
control |
a list with logical components maximal specifying
if rules should be induced from maximally frequent sequences only, and
verbose if progress and runtime information should be displayed. |
Returns an object of class sequencerules
.
Currently, the collection of sequences supplied must be closed with respect to the rules to be induced. That is, the left- and the right-hand side sequence of each candidate rule must be contained in the collection of sequences. However, using timing constraints in the mining step the set of frequent sequences may not be closed under rule induction.
Christian Buchta
Class
sequences
,
sequencerules
,
function
cspade
.
## continue example example(cspade) ## mine rules r2 <- ruleInduction(s2, confidence = 0.5, control = list(verbose = TRUE)) as(r2, "data.frame")