SF.asFeatureSubset: Converting custom attribute name sets into a FeatureSubset...

Description Usage Arguments Value Author(s) Examples

View source: R/IOFunctions.R

Description

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).

Usage

1
2
SF.asFeatureSubset(colNames, decisionTable = NULL, attributeNames = NULL,
  type.method = "custom subset", model = "custom")

Arguments

colNames

a character vector containing names of attributes from a decision table

decisionTable

a decision table which contains attributes from colNames, can be NULL and in that case a non-NULL value of attributeNames must be given

attributeNames

a character vector of names of decision table's attributes, can be NULL and in that case a non-NULL value of decisionTable must be given

type.method

an indicator of the method used for selecting the attributes

model

an indicator of the model used for selecting the attributes

Value

an object of a class FeatureSubset

Author(s)

Andrzej Janusz

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#############################################################
## 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",
                             model = reduct$type.model)
class(reduct)
reduct

janusza/RoughSets documentation built on May 31, 2018, 11:11 a.m.