expSubset: Obtains a subset of an experiment matching the given...

Description Usage Arguments Details Value Examples

Description

This function receives a named list indicating variables and values to filter the input experiment.

Usage

1
expSubset(e, columns, invertSelection = FALSE)

Arguments

e

The experiment to be subsetted

columns

A named list containing the variables to be filtered and the valid values.

invertSelection

If the filtering must match the inversion of the specified conditions.

Details

The names of the elements in the list correspond with the variables to be filtered, indicating either the methos or problem variables as well as parameters. The values of the list correspond with the valid states for the filtering.

Value

a filtered experiment object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# We create a new experiment from the wekaExperiment problem
e <- expCreate(wekaExperiment, parameters="fold", name="Test Experiment")

# We can filter the experiment to reduce the number of methods.
e <- expSubset(e, list(method = c("J48", "NaiveBayes")))
e

# We can filter the experiment to remove a given problem
e <- expSubset(e, list(problem = "iris"), invertSelection=TRUE)
e

# We can subset the experiment to obtain a specific parameter configuration
e <- expSubset(e, list("featureSelection" = "no"))
e

exreport documentation built on May 1, 2019, 10:13 p.m.