Skip to content

Instantly share code, notes, and snippets.

@zunman
Last active September 13, 2016 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zunman/5793a69855a71c0feaaad39a0a0735dc to your computer and use it in GitHub Desktop.
Save zunman/5793a69855a71c0feaaad39a0a0735dc to your computer and use it in GitHub Desktop.
#SMOTE
trainset$label <- as.factor(trainset$label)
trainset <- SMOTE(label ~ ., trainset, perc.over = 200, perc.under=100)
prop.table(table(trainset$label))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment