SPcontrol-class {arulesSequences} | R Documentation |
Provides control parameters for the cSPADE algorithm for mining frequent sequences.
A suitable default parameter object will be automatically created
by a call to cspade
. However, the values can be replaced
by specifying a named list with the names (partially) matching the
slot names of the SPparameter
class.
Objects can be created by calls of the form
new("SPcontrol", ...)
.
memsize
:numpart
:bfstype
:FALSE
[DFS]).verbose
:FALSE
).summary
:FALSE
).coerce
signature(from = "NULL", to = "SPcontrol")
coerce
signature(from = "list", to = "SPcontrol")
coerce
signature(from = "SPcontrol, to = "character")
coerce
signature(from = "SPcontrol, to = "data.frame")
coerce
signature(from = "SPcontrol, to = "list")
coerce
signature(from = "SPcontrol, to = "vector")
format
signature(x = "SPcontrol")
User-supplied values are silently coerced to the target class, e.g.
integer
.
Parameters with no (default) value are not supplied to the mining
algorithm, i.e., take the default values implemented there. A
default can be unset using NULL
.
The value of memsize
implicitly determines the number of
database partitions used unless overridden by numpart
.
Usually, the more partitions the less the runtime in the mining stage.
However, there may be a trade-off with preprocessing time.
If summary = TRUE
output on the console from the system
calls in the preprocessing and mining steps are written to the
file summary.out in the current working directory.
Christian Buchta
Class
SPparameter
,
function
cspade
.
## coerce from list p <- as(list(verbose = TRUE), "SPcontrol") p ## coerce to as(p, "vector") as(p, "data.frame")