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])
| 1 | balanceClasses(df, target, finClassSize)
 | 
| df | data frame | 
| target | target name of the dataset | 
| finClassSize | vector of desired class sizes | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.