Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bcbi/classimbalance.jl
- Owner: bcbi
- License: other
- Created: 2017-07-25T13:05:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-29T02:32:40.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T16:59:11.654Z (about 1 month ago)
- Topics: class, imbalance, rose, smote
- Language: Julia
- Homepage:
- Size: 146 KB
- Stars: 11
- Watchers: 6
- Forks: 9
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# ClassImbalance.jl
## 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)
```