This is a package that implements some sampling-based methods of correcting for class imbalance in two-category classification problems. Portions of the SMOTE and ROSE algorithm are adaptations of the excellent R packages DMwR and ROSE.
To install ClassImbalance, open Julia and run the following two lines:
import Pkg Pkg.add("ClassImbalance")
import ClassImbalance; y = vcat(zeros(20), ones(180)); X = hcat(rand(200, 10), y); X2, y2 = smote(X, y, k = 5, pct_under = 100, pct_over = 200)
23 days ago