Skip to content
 
 

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLSMOTE

Multi label Synthetic Minority Over-sampling Technique (MLSMOTE)

Introduction

MLSMOTE is a technique used to handle data imbalance in multi-label classification problems. This implementation provides an updated version of the original MLSMOTE algorithm, with additional features and improvements.

Changes

  • Generic input support: accepts NumPy arrays, pandas DataFrames, lists of label collections, and SciPy sparse label matrices; outputs match the input types.
  • Paper-faithful distances: Euclidean distance over continuous features plus the Value Difference Metric (per minority label) over categorical features.
  • Batch generation: synthetic samples are computed from the original data and appended at the end (matches the reference implementation by the paper's authors).
  • Bug fixes: sampling_strategy stored correctly, categorical_features optional (defaults to all-continuous), deterministic with random_state.

Run the tests with python -m pytest test_mlsmote.py and see example.py for usage.

Resources

For more information on MLSMOTE and its applications, please refer to:

Usage

Provided in example.py file.

About

Multi label Synthetic Minority Over-sampling Technique (MLSMOTE)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages