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.8.tar.gz
(221.1 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.8.tar.gz.
File metadata
- Download URL: datapruning-1.0.8.tar.gz
- Upload date:
- Size: 221.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a07efae0eaf6b12d2c449dbc115f6386ecf03f13c524803cd9603e6f0d98b331
|
|
| MD5 |
1d75034ac29993aa8331f7444ac5b243
|
|
| BLAKE2b-256 |
52ef2a8adb51354e99357964d1cc11ee675500381daffb18ac0b4bb9abaa64d9
|
File details
Details for the file datapruning-1.0.8-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: datapruning-1.0.8-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 |
09c30e18aad9dc1740f8d9e4b5717215dcbf2066635a7afcf040d82cb630b5c9
|
|
| MD5 |
1f633e596fd2f0c66c7c03720406ddf7
|
|
| BLAKE2b-256 |
e1f8c6f02582236ab898c451c61adde67ae277c7f8a36e1e88cb8b305ae35ef9
|