Skip to content
Sampling-based methods for correcting for class imbalance in two-category classification problems.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci/travis
data
misc
src
test
.gitignore
.travis.yml
LICENSE.md
README.md
REQUIRE
appveyor.yml
codecov.yml

README.md

ClassImbalance.jl

Repository status Project Status: Active – The project has reached a stable, usable state and is being actively developed.
Travis CI
CodeCov

Description

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.

Installation

import Pkg;
Pkg.add("ClassImbalance")

SMOTE Example

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)
You can’t perform that action at this time.