| APRIORI | R Documentation |
This function builds a classification model using the association rules method APRIORI.
APRIORI(
train,
labels,
supp = 0.05,
conf = 0.8,
prune = FALSE,
tune = FALSE,
methodparameters = NULL,
graph = FALSE,
seed = NULL,
...
)
train |
The training set (description), as a |
labels |
Class labels of the training set ( |
supp |
The minimal support of an item set (numeric value). |
conf |
The minimal confidence of an item set (numeric value). |
prune |
A logical indicating whether to prune redundant rules or not (default: |
tune |
If true, the function returns parameters instead of a classification model. |
methodparameters |
Present for interface consistency with |
graph |
Present for interface consistency with |
seed |
A specified seed for random number generation, so that two runs on the same data give the same model. Every learning method accepts it, so that it can be set the same way whatever the method; the deterministic ones simply have nothing to draw and give the same model with or without it. |
... |
Other parameters. |
The classification model, as an object of class apriori.
predict.apriori, apriori-class, apriori
require ("datasets")
data (iris)
d = discretizeDF (iris,
default = list (method = "interval", breaks = 3, labels = c ("small", "medium", "large")))
APRIORI (d [, -5], d [, 5], supp = .1, conf = .9, prune = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.