Skip to main content

Density Aware SMOTE: A Python package for density-aware synthetic oversampling

Project description

Density Aware SMOTE

PyPI version Python versions License

A Python package implementing Density Aware SMOTE, developed in the Improved-Oversampling-Density-Aware-Smote repository.
This method enhances SMOTE by generating synthetic samples based on local data density, reducing oversampling in sparse regions and preserving valuable patterns in dense areas.


Features

  • Density-aware oversampling tuned for local distribution
  • Flexible sampling strategy: auto, ratio float, or custom class counts
  • Custom neighbor selection: random, nearest, farthest
  • Seamless integration with scikit-learn pipelines
  • Built-in visuals: class distribution, synthetic samples, decision boundaries

Installation

pip install density-aware-smote

Project details


Download files

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

Source Distribution

density_aware_smote-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

density_aware_smote-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file density_aware_smote-0.1.0.tar.gz.

File metadata

  • Download URL: density_aware_smote-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for density_aware_smote-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d60b0b7ddfcf540e67d32dfa97f37a37d96bb094c642698c9e03b0c77e916a09
MD5 1c66bd5c4e1cc801f6a61e4a50f89235
BLAKE2b-256 5070546601ae614c79a8d63785b6b965465248db95c6a4a36b4d7945b89da6e0

See more details on using hashes here.

File details

Details for the file density_aware_smote-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for density_aware_smote-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 945c8dd5f9601666378ff1111a34a530ee17c6be76e437dc1c7a594bdee18937
MD5 8076f5e24df4467c951c4e80db091bd4
BLAKE2b-256 228dbffdb6d2792efd02e4ece6856257c50767214c801e5581d4b33826505b87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page