decisions2FullDummy: Transform all variables in a decision ensemble into dummy...

View source: R/decisions2FullDummy.R

decisions2FullDummyR Documentation

Transform all variables in a decision ensemble into dummy variables.

Description

This function first transforms all non-numeric variables from data used to train the original model into dummy variables. It then updates the decision ensemble.

Usage

decisions2FullDummy(
  rules,
  data,
  in_parallel = FALSE,
  n_cores = detectCores() - 1,
  cluster = NULL
)

Arguments

rules

data frame with a 'condition' column.

data

data used to train the original model, or for which the column order corresponds to the column numbers in the rules (column 'condition').

in_parallel

if TRUE, the function is run in parallel (default = FALSE).

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.


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