Skip to content
Sampling-based methods for correcting for class imbalance in two-category classification problems
Julia Shell R
Branch: master
Clone or download
bcbi-bot and DilumAluthge Merge #49
49: Add [committer] section r=DilumAluthge a=DilumAluthge



Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Latest commit b30546e Jul 30, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates May 26, 2019
ci/travis Update script.sh May 19, 2019
data first commit Jul 25, 2017
misc minor updates Aug 1, 2017
src
test Fix tests May 26, 2019
.gitignore ClassImbalance.jl generated files. Jul 25, 2017
.travis.yml Don't run Travis on macOS Jul 7, 2019
CODEOWNERS Create CODEOWNERS May 20, 2019
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md May 26, 2019
LICENSE.md ClassImbalance.jl generated files. Jul 25, 2017
MUTATION_TESTING.md Create MUTATION_TESTING.md May 26, 2019
Project.toml
README.md Bors badge Jul 4, 2019
bors.toml Add [committer] section Jul 30, 2019
codecov.yml Update ClassImbalance to work on Julia 0.7, Sep 29, 2018
ready.yml Add DOI May 30, 2019

README.md

ClassImbalance.jl

DOI

Bors enabled

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

To install ClassImbalance, open Julia and run the following two lines:

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.