Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bcbi/classimbalance.jl

Sampling-based methods for correcting for class imbalance in two-category classification problems
https://github.com/bcbi/classimbalance.jl

class imbalance rose smote

Last synced: 19 days ago
JSON representation

Sampling-based methods for correcting for class imbalance in two-category classification problems

Awesome Lists containing this project

README

        

# 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:
```julia
import Pkg
Pkg.add("ClassImbalance")
```

## SMOTE Example
```julia
import ClassImbalance;
y = vcat(ones(20), zeros(180)); # 0 = majority, 1 = minority
X = hcat(rand(200, 10), y);
X2, y2 = smote(X, y, k = 5, pct_under = 100, pct_over = 200)
```