Skip to main content

A Python implementation of Synthetic Minority Over-Sampling Technique for Regression with Gaussian Noise (SMOGN)

Project description

SMOGN: Synthetic Minority Over-Sampling with Gaussian Noise


A Python implementation of Synthetic Minority Over-Sampling Technique for Regression with Gaussian Noise (SMOGN). Conducts the Synthetic Minority Over-Sampling Technique for Regression (SMOTER) with traditional interpolation, as well as with the introduction of Gaussian Noise (SMOTER-GN). Selects between the two over-sampling techniques by the KNN distances underlying a given observation. If the distance is close enough, SMOTER is applied. If too far away, SMOTER-GN is applied. Useful for prediction problems where regression is applicable, but the values in the interest of predicting are rare or uncommon. This can also serve as a useful alternative to log transforming a skewed response variable, especially if generating synthetic data is also of interest.


  1. The only open-source Python supported version of Synthetic Minority Over-Sampling Technique for Regression

  2. Supports Pandas DataFrame inputs containing mixed data types, auto distance metric selection by data type, and optional auto removal of missing values

  3. Flexible inputs available to control the areas of interest within a continuous response variable and friendly parameters for over-sampling synthetic data

  4. Purely Pythonic, developed for consistency, maintainability, and future improvement, no foreign function calls to C or Fortran, as contained in original R implementation


## install pypi release
pip install smogn

## install developer version
pip install git+

Road Map

  1. Distributed computing support
  2. Optimized distance metrics
  3. Explore interpolation methods


© Nick Kunz, 2019. Licensed under the General Public License v3.0 (GPLv3).


SMOGN is open for improvements and maintenance. Your help is valued to make the package better for everyone.


Branco, P., Torgo, L., Ribeiro, R. (2017). SMOGN: A Pre-Processing Approach for Imbalanced Regression. Proceedings of Machine Learning Research, 74:36-50.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for smogn, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size smogn-0.0.1-py3-none-any.whl (29.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size smogn-0.0.1.tar.gz (26.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page