Skip to main content

crucio

Crucio is a python sci-kit learn inspired package for class imbalance. It use some classic methods for class balancing taking as parameters a data frame and the target column.

This version of kydavra has the next methods of feature selection:

  • ADASYN.
  • ICOTE (Immune Centroids Oversampling).
  • MTDF (Mega-Trend Difussion Function).
  • MWMOTE (Majority Weighted Minority Oversampling Technique).
  • SMOTE (Synthetic Minority Oversampling Technique).
  • SMOTENC (Synthetic Minority Over-sampling Technique for Nominal and Continuous).
  • SMOTETOMEK (Synthetic Minority Oversampling Technique + Tomek links for undersampling).
  • SMOTEENN (Synthetic Minority Oversampling Technique + ENN for undersampling).
  • SCUT (SMOTE and Clustered Undersampling Technique).
  • SLS (Safe-Level-Synthetic Minority Over-Sampling TEchnique).
  • TKRKNN (Top-K ReverseKNN).

All these methods takes the pandas Data Frame and y column to balance on.

How to use crucio

To use balancer from crucio you should just import the balancer from crucio in the following framework:

from crucio import SMOTE

class names are written above.Next create a object of this algorithm (I will use SMOTE method as an example).

method = SMOTE()

To balance the dataset on the target column use the ‘balance’ function, using as parameters the pandas Data Frame and the column that you want to balance. Small tip, balance only the training set, not full one.

new_dataframe = method.balance(df, 'target')

Returned value is a new data frame with the target column balanced.

With love from Sigmoid.

We are open for feedback. Please send your impression to vladimir.stojoc@gmail.com

Metadata

Release files for crucio 0.1.94

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crucio 0.1.94
File Size Uploaded Provenance Actions
crucio-0.1.94.tar.gz 15.1 kB Without provenance Details for crucio-0.1.94.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crucio 0.1.94
File Interpreter ABI Platform Actions
crucio-0.1.94-py3-none-any.whl Python 3 none any Details for crucio-0.1.94-py3-none-any.whl

Total release size: 44.5 kB

Release files / crucio-0.1.94.tar.gz

Download URL crucio-0.1.94.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ad0f39c12a11f8f4be028dd02f1ae324fc85f5cabd55f344b3a963d1a3d0c547
BLAKE2b-256 checksum
How to use checksums
7c4635b8b2d5798e3a37b7df07f81abe2bb93413f4c1feed0414ccff3325720a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release files / crucio-0.1.94-py3-none-any.whl

Download URL crucio-0.1.94-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73c20ccc1544635de7f9765066b047683f70b66d1915bb6cdc69086a3924aa2e
BLAKE2b-256 checksum
How to use checksums
c091a65f97f6f8e980901842421070a775dca64ec9d168a65535499ead5dec5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Security for crucio 0.1.94

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page