resampling: Pranger

View source: R/resampling.R

resamplingR Documentation

Pranger

Description

Synthesize a two-classes classification problem given a resampling strategy.

Usage

resampling(data, strategy, nb_bootst, aggregation)

Arguments

data

[data.frame] A data.frame of original dataset

strategy

[character] Name of strategy to be used. Most be element of "boostrepl", "boostwithoutrepl", "boostbayes", "unif", "normal", "binomial" or "boostaggr"

nb_bootst

[integer] Number of repetitions required to aggregate the bootstrap samples. Set to ceiling(sqrt(n)) if not provided, with n the number of observations

aggregation

[function] Function that is called for aggregation. Only usable in the case of "boostaggr"

Value

[data.frame] A data.frame of a synthetic two-classes classification problem

Author(s)

Cesaire J. K. Fouodo

Examples

    set.seed(1234)
   data_synt <- resampling(
                    data = data.frame(x = rnorm(10),
                                      y = rnorm(10)),
                    strategy = "boostrepl"
                  )

imbs-hl/pranger documentation built on May 15, 2022, 5:27 p.m.