ASparameter-classes {arules} | R Documentation |
The ASparameter
class holds the mining parameters (e.g.,
minimum support) for the used mining algorithms.
APparameter
and ECparameter
directly extend
ASparameter
with additional slots for parameters only suitable
for the Apriori (APparameter
) or the Eclat algorithms
(ECparameter
).
A suitable default parameter object will be automatically created by
the apriori
or the eclat
function. By
specifying a named list (names equal to slots) as parameter
argument for the apriori
or the eclat
function, default values can be replaced by the values in the list.
Objects can be created by calls of the form new("APparameter",
...)
or new("ECparameter", ...)
.
Common slots defined in ASparameter
:
support
:"numeric"
;
minimal support of an item set (default: 0.1)minlen
:"integer"
;
minimal number of items per item set (default: 1)maxlen
:"integer"
;
maximal number of items per item set (default: 5)target
:"character"
;
indicates the type of association mined.
One of
"frequent itemsets"
"maximally frequent itemsets"
"closed itemsets"
"rules"
(only available for Apriori)
"hyperedgesets"
(only available for Apriori;
see references for the definition of association hyperegesets)
ext
:"logical"
;
produce extended information on quality measures (e.g.,
lhs.support) (default: FALSE
)
Additional slots for Apriori in APparameter
:
confidence
:"numeric"
;
minimal confidence of rules/association hyperedges (default:
0.8)smax
:"numeric"
;
maximal support of itemsets/rules/hyperedgesets (default: 1)arem
:"character"
;
additional rule evaluation measure (default: none) given by one of
"none"
:"diff"
:"quot"
:"aimp"
:"info"
:"chi2"
:aval
:"logical"
;
return the additional rule evaluation measure selected with
arem
.minval
:"numeric"
;
minimal value of additional evaluation measure selected with
arem
(default: 0.1)originalSupport
:"logical"
;
use for minimum support the original definition of the support of
a rule (lhs and rhs) instead of lhs support. Make sure to use
ext = TRUE
if originalSupport
is set to FALSE
(default: TRUE
)
Additional slots for Eclat in ECparameter
:
tidLists
:"logical"
;
return also a list of supporting transactions (transaction IDs)
(default: FALSE
)signature(from = "NULL", to = "APparameter")
signature(from = "list", to = "APparameter")
signature(from = "NULL", to = "ECparameter")
signature(from = "list", to = "ECparameter")
signature(object = "ASparameter")
Christian Borgelt (2004). Apriori — Finding Association Rules/Hyperedges with the Apriori Algorithm. http://fuzzy.cs.uni-magdeburg.de/~borgelt/apriori.html