SF.asFeatureSubset | R Documentation |
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).
SF.asFeatureSubset(
colNames,
decisionTable = NULL,
attributeNames = NULL,
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,
can be |
attributeNames |
a character vector of names of decision table's attributes,
can be |
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
Andrzej Janusz
#############################################################
## Example 1:
#############################################################
data(RoughSetData)
wine.data <- RoughSetData$wine.dt
dim(wine.data)
## selection of an arbitrary attribute subset
attrNames = colnames(wine.data)[1:3]
attrNames
class(attrNames)
## convertion into a FeatureSubset object
reduct <- SF.asFeatureSubset(attrNames, wine.data,
type.method = "greedy reduct from a discernibility matrix")
class(reduct)
reduct
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.