Description Usage Arguments Value Author(s) Examples
Extracts the features from the rules. Sorts the features according to their frequency (percentage). Creates a list of the features, frequencies and discretization levels for each decision class.
1 | getFeatures(rules, filter = F, filterType = "support", thr = 10)
|
rules |
A data frame of rule table in a form of main rosetta output. |
filter |
Logical. Enable filtration or not. Default is F. |
filterType |
A character. Choose between support, accuracy or pvalue. The default is 10. |
thr |
A numeric value of rule threshold. The default is 10. |
list |
Lists of the features, frequencies and discretization levels for each class. Each list is sorted be the frequency. |
Mateusz Garbulowski
1 2 3 4 5 6 7 8 9 10 11 | library(R.ROSETTA)
set.seed(1)
out <- rosetta(autcon)
rules <- out$main
# default settings
features <- getFeatures(rules)
# filter by p-value
features <- getFeatures(rules, filter = T, filterType = "pvalue", thr = 0.05)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.