discretizeUnsupervised: Unsupervised Discretization

View source: R/mdlp2.R

discretizeUnsupervisedR Documentation

Unsupervised Discretization

Description

Discretizes provided numeric vector.

Usage

discretizeUnsupervised(
  data,
  labels = FALSE,
  infinite_bounds = FALSE,
  categories = 3,
  method = "cluster"
)

Arguments

data

input numeric vector.

labels

a logical indicating whether the bins of the discretized data should be represented by integer codes or as interval notation using (a;b] when set to TRUE.

infinite_bounds

a logical indicating how the bounds on the extremes should look like.

categories

number of categories (bins) to produce.

method

clustering method, one of "interval" (equal interval width), "frequency" (equal frequency), "cluster" (k-means clustering). See also documentation of the discretize function from the arules package.

Value

Discretized data. If there was no discretization specified for some columns, these are returned as is.

Examples

  discretizeUnsupervised(datasets::iris[[1]])


kliegr/arc documentation built on Aug. 21, 2023, 6:44 p.m.