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.6.tar.gz (210.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.6-cp314-cp314-win_amd64.whl (120.0 kB view details)

Uploaded CPython 3.14Windows x86-64

File details

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

File metadata

  • Download URL: datapruning-1.0.6.tar.gz
  • Upload date:
  • Size: 210.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.6.tar.gz
Algorithm Hash digest
SHA256 260f5fda8ff7c8deab3402785f18420617c408cf5cede301bbee2c93f6027dd1
MD5 0d9031c76b366e51ac30b69df0c7ad32
BLAKE2b-256 5cacd0934ba71882c8199fed3b164b587497aefa32c5ef29c76d82591a44ff46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datapruning-1.0.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 89d5781485937dfc3562564dd2f11d5715ddb29f2970c68dc50ed0049ae9939b
MD5 cc48f80d21da3d0fe399349ccbad19eb
BLAKE2b-256 bd0a4f3a13fc1525ecb9c9932f56c2be92cb56f9d934b9b5e87a1d092aae634d

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