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

Description Usage Arguments

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 4, 2019, 11:59 a.m.