fsets
object d
for all fuzzy
association rules
that satisfy defined constraints. It returns a list of fuzzy association rules
together with some statistics characterizing them (such as support, confidence etc.).
searchrules(d, lhs=2:ncol(d), rhs=1, tnorm=c("goedel", "goguen", "lukasiewicz"), n=100, best=c("confidence"), minSupport=0.02, minConfidence=0.75, maxConfidence=1, maxLength=4, numThreads=1, trie=(maxConfidence < 1))
n
best rules are returned. The criterium
of what is ``best'' is specified with the best
argument.
n
argument. Currently, only single value
("confidence") can be used.
maxConfidence
threshold, no other rule is resulted based on adding some additional
attribute to its antecedent part. I.e. if "Sm.age & Me.age => Sm.height" has confidence above
maxConfidence
threshold, no another rule containing "Sm.age & Me.age" will be produced
regardless of its interest measures. If you want to disable this feature, set maxConfidence
to 1.
searchrules
function with some of the external parallelization mechanisms such as
library doMC
, make sure that numThreads
equals 1.
This feature is available only on systems that have installed the OpenMP library.
maxConfidence
threshold. Tries consume very much memory, so if you encounter problems with insufficient memory, set this
argument to FALSE. On the other hand, the size of result (if n
is set to 0) can be very
high if trie is set to FALSE.
rules
and statistics
.rules
is a list of mined fuzzy association rules. Each element of that list is a character
vector with consequent attribute being on the first position.statistics
is a data frame of statistical characteristics about mined rules. Each row
corresponds to a rule in the rules
list. Let us consider a rule "a & b => c", let
$\otimes$
be a t-norm specified with the tnorm
parameter and $i$ goes over all rows of a data
table d
. Then columns of the statistics
data frame are as follows:d
for fuzzy association rules that satisfy conditions
specified by the parameters.
fcut
,
lcut
,
farules
,
fsets
,
pbld
d <- lcut3(CO2)
searchrules(d, lhs=1:ncol(d), rhs=1:ncol(d))
Run the code above in your browser using DataLab