changeDecisionsDummies: Takes decisions and modifies them so that only one level of a...

View source: R/changeDecisionsDummies.R

changeDecisionsDummiesR Documentation

Takes decisions and modifies them so that only one level of a multiclass variable is used in decisions

Description

Takes decisions and modifies them so that only one level of a multiclass variable is used in decisions

Usage

changeDecisionsDummies(
  rules,
  dummy_var,
  data,
  target,
  classPos = NULL,
  in_parallel = FALSE,
  n_cores = detectCores() - 1,
  cluster = NULL
)

Arguments

rules

a data frame with a column "condition".

dummy_var

string vector with the names of columns to change to dummy variable.

data

data on which to fit the decision ensemble.

target

response variable.

classPos

for classification, the positive class.

in_parallel

if TRUE, the function is run in parallel.

n_cores

if in_parallel = TRUE, and no cluster has been passed: number of cores to use, default is detectCores() - 1.

cluster

the cluster to use to run the function in parallel (opt).


aruaud/endoR documentation built on Jan. 25, 2025, 2:20 a.m.