50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

rmcfs (version 1.3.6)

prune.data: Filters input data

Description

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

Usage

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

Value

data.frame with selected columns.

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.

Examples

Run this code
  if (FALSE) ###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))

  ###dontrunend  

Run the code above in your browser using DataLab