Skip to main content

Intelligent data pruning for ML datasets

Project description

DataPruning

Intelligent dataset pruning for ML — reduces dataset size by selecting the most informative rows.

Installation

pip install datapruning

Note: PyTorch (~2 GB) is a required dependency.

Requirements

  • Python >= 3.10
  • PyTorch 2.0+
  • Pandas 2.0+
  • NumPy 1.24+

Limits

  • Minimum: 1,000 rows per dataset
  • Maximum: 300,000 rows per dataset

Usage

import pandas as pd
from datapruning import Pruner

df = pd.read_csv("dataset.csv")
p = Pruner(df)
filtered = p.prune(target_col="label", keep_ratio=0.5)

print(f"Kept {len(filtered)} / {len(df)} rows")

Features

  • Runs locally, no data upload
  • Pre-training dataset optimization
  • Pandas DataFrame input / output
  • Compiled processing module

Links

License

Proprietary. See LICENSE file.

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

datapruning-1.0.7.tar.gz (219.9 kB view details)

Uploaded Source

Built Distribution

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

datapruning-1.0.7-cp314-cp314-win_amd64.whl (136.3 kB view details)

Uploaded CPython 3.14Windows x86-64

File details

Details for the file datapruning-1.0.7.tar.gz.

File metadata

  • Download URL: datapruning-1.0.7.tar.gz
  • Upload date:
  • Size: 219.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for datapruning-1.0.7.tar.gz
Algorithm Hash digest
SHA256 eb7e8f5a681b0d05e57b7f25503e4d56da27929b1675419c184910ebb3b96946
MD5 db55b991adcedde192ea106a71853ff2
BLAKE2b-256 7883e253669f4f11632f2bc811b07d895d9e3452bcda079a56f771cc75333800

See more details on using hashes here.

File details

Details for the file datapruning-1.0.7-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for datapruning-1.0.7-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b9e587cb07ae2087846a42e20396436d1467c2c86f81727d54c009c28c04aa5d
MD5 b39c32316252d9635c1cfdfb32d8e59a
BLAKE2b-256 4c566aa5d7306050f0c6c373e32e078e906c8320d7d43eae2d56bb9426f3db32

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