The AScontrol
class holds the algorithmic parameters for the used
mining algorithms. APcontrol
and ECcontrol
directly extend
AScontrol
with additional slots for parameters only suitable for the
algorithms Apriori (APcontrol
) and Eclat (ECcontrol
).
A suitable default control object will be automatically created by
the apriori
or the eclat
function.
By specifying a named list (names equal to slots) as control
argument for the apriori
or the eclat
function, default values can be replaced by the values in the list.
Objects can also be created by calls of the form
new("APcontrol", ...)
or new("ECcontrol", ...)
.
Common slots defined in AScontrol
:
sort
:an integer scalar indicating how to sort items with respect to their frequency: (default: 2)
ascending
descending
do not sort
ascending
descending with respect to transaction size sum
verbose
:a logical indicating whether to report progress
Additional slots for Apriori in APcontrol
:
filter
:a numeric scalar indicating how to filter unused items from transactions (default: 0.1)
do not filter items with respect to. usage in sets
fraction of removed items for filtering
take execution times ratio into account
tree
:a logical indicating whether to
organize transactions as a prefix tree (default: TRUE
)
heap
:a logical indicating whether to
use heapsort instead of quicksort to sort the transactions
(default: TRUE
)
memopt
:a logical indicating whether to
minimize memory usage instead of maximize speed (default:
FALSE
)
load
:a logical indicating whether to
load transactions into memory (default: TRUE
)
Additional slots for Eclat in ECcontrol
:
sparse
:a numeric value for the threshold for sparse representation (default: 7)
signature(from = "NULL", to = "APcontrol")
signature(from = "list", to = "APcontrol")
signature(from = "NULL", to = "ECcontrol")
signature(from = "list", to = "ECcontrol")
Christian Borgelt (2004) Apriori --- Finding Association Rules/Hyperedges with the Apriori Algorithm. www.borgelt.net/apriori.html