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
- Website: datapruning.com
License
Proprietary. See LICENSE file.
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(221.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datapruning-1.0.9.tar.gz.
File metadata
- Download URL: datapruning-1.0.9.tar.gz
- Upload date:
- Size: 221.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4040e56cb23932517c5a668d5106e219a257b242000b4639f026c4a783742b1
|
|
| MD5 |
87e1e497dc06c63d8bd5dff5062d95a9
|
|
| BLAKE2b-256 |
f73aae4694d3c647847f413acf4cb9bf9dbbe03eae23d9ac2abefcabdabc7ed7
|
File details
Details for the file datapruning-1.0.9-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: datapruning-1.0.9-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 137.7 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0911761353afda040b612fe7fab2f9c7c47b02d549df05108fcbb9d2504f82c1
|
|
| MD5 |
f59bd5f6c068423b3a90048cb0e800fc
|
|
| BLAKE2b-256 |
377bd7fcb78b3efe66f27630f4027dd7835f928b7477971a60ab43819beda4a8
|