balanceClasses: Simple balancing of classes for multinomial. If up-sample, do...

Description Usage Arguments

View source: R/preProcess.r

Description

Simple balancing of classes for multinomial. If up-sample, do with replacement, if down sample no replacement. For the final class sizes, pass a vector of the desired class sizes that is in the same order as the original data (e.g., if run table(df[,target])

Usage

1
balanceClasses(df, target, finClassSize)

Arguments

df

data frame

target

target name of the dataset

finClassSize

vector of desired class sizes


wtcooper/modUtils documentation built on May 28, 2017, 6:35 a.m.