Description Usage Arguments Value Author(s)
The function can be used to change a custom set of attribute names from a decision table into an object of the FeatureSubset class. It can be useful for converting results of discernibility matrix-based attribute selection methods (i.e. functions FS.all.reducts.computation and FS.one.reduct.computation).
1 2 | SF.asFeatureSubset(colNames, decisionTable, type.method = "custom subset",
model = "custom")
|
colNames |
a character vector containing names of attributes from a decision table |
decisionTable |
a decision table which contains attributes from colNames |
type.method |
an indicator of the method used for selecting the attributes |
model |
an indicator of the model used for selecting the attributes |
an object of a class FeatureSubset ############################################################# ## Example 1: ############################################################# data(RoughSetData) wine.data <- RoughSetData$wine.dt
## discretization and generation of a reduct cut.values <- D.discretization.RST(wine.data, type.method = "unsupervised.quantiles", nOfIntervals = 3) decision.table <- SF.applyDecTable(wine.data, cut.values) disc.matrix <- BC.discernibility.mat.RST(wine.data) reduct <- FS.one.reduct.computation(disc.matrix, greedy=TRUE) class(reduct) is(reduct$decision.reduct[[1]])
## convertion into a FeatureSubset object reduct <- SF.asFeatureSubset(reduct$decision.reduct[[1]], decision.table, type.method = "greedy reduct from a discernibility matrix", model = reduct$type.model) class(reduct)
Andrzej Janusz
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.