prune.data: Filters input data

View source: R/rmcfs.R

prune.dataR Documentation

Filters input data

Description

Selects columns from input data based on the highest RIs of attributes.

Usage

prune.data(x, mcfs_result, size = NA)

Arguments

x

input data.frame.

mcfs_result

result from mcfs function.

size

number of top features to select from input data. If size = NA, then it is defined by mcfs_result$cutoff_value parameter.

Value

data.frame with selected columns.

Examples

  ## Not run: ###dontrunbegin

  # create input data
  adata <- artificial.data(rnd_features = 10)
  showme(adata)
  
  # Parametrize and run MCFS-ID procedure
  result <- mcfs(class~., adata, cutoffPermutations = 0, featureFreq = 10,
                  finalCV = FALSE, finalRuleset = FALSE, threadsNumber = 2)

  head(prune.data(adata, result, size = result$cutoff_value))

  
## End(Not run)###dontrunend  

rmcfs documentation built on Sept. 11, 2024, 8:41 p.m.

Related to prune.data in rmcfs...