disc {minet} | R Documentation |
disc
discretizes data
using the equal frequencies or equal width binning algorithm.
disc( data,disc.method="equalfreq",nbins=sqrt(nrow(data)) )
data |
The dataset to be discretized. The columns contains variables and the rows samples. |
disc.method |
The package implements two discretization methods "equalfreq" and "equalwidth" (default : "equalfreq") - see references. |
nbins |
The number of bins to be used for discretization. By default the number of bins is set to sqrt(N) where N is the number of samples. |
disc
returns the discretized dataset.
P.E.Meyer, F.Lafitte, G.Bontempi
Supervised and unsupervised discretization of continuous features. J.Dougherty, R. Kohavi, M. Sahami. ICML, 1995.
data(syn.data) ew.data <- disc(syn.data,"equalwidth") ef.data <- disc(syn.data,"equalfreq")