Description Usage Examples
preprocess the imbalance data by using SMOTE.
1
smote(X,Y,minority,m = 50,r = 2,neighbors = 5)
1 2 3 4 5 6
X = data.frame(x1 = rep(1,5),x2 = rep(0,5),x3 = runif(5))#train data Y = as.factor(c(1,0,0,0,1)) minority = Y[1] data = smote(X,Y,minority,m = 0.5,r = 2,neighbors = 1) data$data_train data$train_label
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.