Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/Discretization.R

This function implements unsupervised discretization into intervals of equal size.

1 | ```
D.discretize.equal.intervals.RST(decision.table, nOfIntervals = 4)
``` |

`decision.table` |
an object inheriting from the |

`nOfIntervals` |
a positive integer giving the number of intervals. |

This approach belongs to a class of unsupervised discretization methods
since it does not consider the class labels. Each numeric attribute is divided in `k`

intervals of equal length.
Detailed information regarding this method can be found in (Dougherty et al, 1995).

It should be noted that the output of this function is an object of a class `"Discretization"`

which contains the cut values.
The function `SF.applyDecTable`

has to be used in order to generate the new (discretized) decision table.

An object of a class `"Discretization"`

which stores cuts for each conditional attribute.
See `D.discretization.RST`

.

Andrzej Janusz

J. Dougherty, R. Kohavi, and M. Sahami, "Supervised and Unsupervised Discretization of Continuous Features", In A. Prieditis & S. J. Russell, eds. Work. Morgan Kaufmann, p. 194-202 (1995).

`D.discretize.quantiles.RST`

, `D.global.discernibility.heuristic.RST`

,
`D.local.discernibility.heuristic.RST`

, `SF.applyDecTable`

.
A wrapper function for all available discretization methods: `D.discretization.RST`

1 2 3 4 5 6 7 8 9 10 11 | ```
#################################################################
## Example: Determine cut values and generate new decision table
#################################################################
data(RoughSetData)
wine.data <- RoughSetData$wine.dt
cut.values <- D.discretize.equal.intervals.RST(wine.data, nOfIntervals = 3)
## generate a new decision table
wine.discretized <- SF.applyDecTable(wine.data, cut.values)
dim(wine.discretized)
lapply(wine.discretized, unique)
``` |

```
Loading required package: Rcpp
[1] 178 14
$alcohol
[1] (13.6, Inf] (12.3,13.6] [-Inf,12.3]
Levels: [-Inf,12.3] < (12.3,13.6] < (13.6, Inf]
$malid_acid
[1] [-Inf,2.43] (2.43,4.11] (4.11, Inf]
Levels: [-Inf,2.43] < (2.43,4.11] < (4.11, Inf]
$ash
[1] (1.98,2.61] (2.61, Inf] [-Inf,1.98]
Levels: [-Inf,1.98] < (1.98,2.61] < (2.61, Inf]
$alcalinity_of_ash
[1] [-Inf,17.1] (17.1,23.5] (23.5, Inf]
Levels: [-Inf,17.1] < (17.1,23.5] < (23.5, Inf]
$magnesium
[1] (101,131] [-Inf,101] (131, Inf]
Levels: [-Inf,101] < (101,131] < (131, Inf]
$total_phenols
[1] (1.95,2.91] (2.91, Inf] [-Inf,1.95]
Levels: [-Inf,1.95] < (1.95,2.91] < (2.91, Inf]
$flavanoids
[1] (1.92,3.5] (3.5, Inf] [-Inf,1.92]
Levels: [-Inf,1.92] < (1.92,3.5] < (3.5, Inf]
$nonflavanoid_phenols
[1] [-Inf,0.307] (0.307,0.483] (0.483, Inf]
Levels: [-Inf,0.307] < (0.307,0.483] < (0.483, Inf]
$proanthocyanins
[1] (1.47,2.52] [-Inf,1.47] (2.52, Inf]
Levels: [-Inf,1.47] < (1.47,2.52] < (2.52, Inf]
$color_intensity
[1] (5.19,9.09] [-Inf,5.19] (9.09, Inf]
Levels: [-Inf,5.19] < (5.19,9.09] < (9.09, Inf]
$hue
[1] (0.89,1.3] [-Inf,0.89] (1.3, Inf]
Levels: [-Inf,0.89] < (0.89,1.3] < (1.3, Inf]
$od
[1] (3.09, Inf] (2.18,3.09] [-Inf,2.18]
Levels: [-Inf,2.18] < (2.18,3.09] < (3.09, Inf]
$proline
[1] (745,1.21e+03] (1.21e+03, Inf] [-Inf,745]
Levels: [-Inf,745] < (745,1.21e+03] < (1.21e+03, Inf]
$class
[1] 1 2 3
Levels: 1 2 3
```

RoughSets documentation built on May 29, 2017, 7:06 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.