Skip to content
/ pySMOTE Public

Python implementation of SMOTE: Synthetic Minority Over-sampling Technique

License

Notifications You must be signed in to change notification settings

akazs/pySMOTE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pySMOTE

Python implementation of SMOTE: Synthetic Minority Over-sampling Technique

Installation

Dependencies

Tested on Python 2.7 and 3.6, with:

  • scipy>=0.19.0
  • numpy>=1.13.0
  • scikit-learn>=0.18.1

Older versions may work but not tested.

Installation

git clone https://github.com/akazs/pySMOTE.git
cd pySMOTE
pip install .

Usage

import pySMOTE

smote = pySMOTE.SMOTE(ratio=100, k_neighbors=6)
synthetic_samples = smote.oversample(sample_data)
new_samples = smote.oversample(sample_data, merge=True)

About

Python implementation of SMOTE: Synthetic Minority Over-sampling Technique

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages