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
Built Distributions
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.5.tar.gz.
File metadata
- Download URL: datapruning-1.0.5.tar.gz
- Upload date:
- Size: 206.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c00b6f123daeb1d5e57fa32b7cc4cffd202526874842b7d644c8b9132d5441dc
|
|
| MD5 |
b9624839cf637bb724b9cd9f545740ed
|
|
| BLAKE2b-256 |
96605a83d87a650e5a969c12d2254503100e40360d51f22ec019b1d73749af36
|
File details
Details for the file datapruning-1.0.5-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 120.7 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c19cf4621301ea5f53c407979f7194e2d820714dfa2ba78b6e315220dd6882ab
|
|
| MD5 |
afdd651131db18465f76db28e67a82f3
|
|
| BLAKE2b-256 |
adca5886ef61b4734c99ccfc05dc876ff24cdeedd4ad06beb631334756a28a8c
|
File details
Details for the file datapruning-1.0.5-cp314-cp314-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp314-cp314-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 144.9 kB
- Tags: CPython 3.14, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73adb5c74095aeedc58ee479a2fd70c4b4d7036c3e86978259ec995c31ec1471
|
|
| MD5 |
b61123924a44ff0e304ad5941ec51959
|
|
| BLAKE2b-256 |
f274e814131fa72847bb43bac236ea73e86ce1cf6694244c175f1d1a19435820
|
File details
Details for the file datapruning-1.0.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 143.3 kB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef1c12132f8d6670578d033d403ad3284f272949a50302c4d2fd3e1fc4c182dd
|
|
| MD5 |
addc04e8aaf0bb6faa8d9bff48821b96
|
|
| BLAKE2b-256 |
c9fc4c5f949467ec289a0daba2666f784d5ae1a72005a8487276b4571770a553
|
File details
Details for the file datapruning-1.0.5-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 114.9 kB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da0773122c58066389df1787394003361e7b4e34c35865f49f0d41790d950b60
|
|
| MD5 |
f8526305007858da8018c5b7e6152ff6
|
|
| BLAKE2b-256 |
2180e8fee47fd45e3623d4f11d3c5e866302e1624eadb41671d06344e2de01c0
|
File details
Details for the file datapruning-1.0.5-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 119.1 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45c31f31775fe651d0cecb2f49d66437ef02fa57960da314773c055a05e26f0c
|
|
| MD5 |
89c265f6e8acccf69a89ecdf239b36d7
|
|
| BLAKE2b-256 |
f2099f3bc6cf46744ca685c63ab8ad9c07f248945ec34f4ace43bceb9f391816
|
File details
Details for the file datapruning-1.0.5-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 144.0 kB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d41597d7631c1588de5143cfaa70fdf4d14b7d6722ced0bb6cc6e16efcb852ae
|
|
| MD5 |
ba01d2892fd43972193e3725d104cc9c
|
|
| BLAKE2b-256 |
1f48b97ae7598b3712bc13cc14cb0166f094f0af2792db2c9d67040daf4d945a
|
File details
Details for the file datapruning-1.0.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 142.6 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f7c994a7c89e8b23a2137278a5973f5c3ee0ead51f41605c79c56b684544373
|
|
| MD5 |
dd596a315437963979e12bb0d609251c
|
|
| BLAKE2b-256 |
db36abce6edf588ba431cd45ec8518f57ffcd6532609b8926f7ee32c810870f9
|
File details
Details for the file datapruning-1.0.5-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 113.8 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e62cfddded4437a4f5b6b8af2440538461f37e319d5435586dd950a9f3922054
|
|
| MD5 |
75fd6d0d487453d32f99ea309b04c1fc
|
|
| BLAKE2b-256 |
0652169023b4e92f606d72c2476219013dc614f5d03d894877782a9070adcdfa
|
File details
Details for the file datapruning-1.0.5-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 119.4 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
554444ca73b476b5a94384d7b64423a91a8a20a0b607d0ae2a836bf53ee3c8ef
|
|
| MD5 |
d249ef185725ada4defeb20775297cb9
|
|
| BLAKE2b-256 |
88792b039661ab6ed158a52f109c24946e260899169b4c0e22b80209ebb06d1e
|
File details
Details for the file datapruning-1.0.5-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 142.0 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f7cb95a7784bd137c0b316c415dd72f8cc8a5d7d743bf21885f30a4412a1059
|
|
| MD5 |
c3c867e80884e8692d8b73cbd5cbab72
|
|
| BLAKE2b-256 |
022ffa8ac8835d3cb8f8eb6bdf55405cc3c237bbb02f270757c497de0e12c233
|
File details
Details for the file datapruning-1.0.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 141.0 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
913dbee0a2842be312115f60f6b5130e0e9da52c044c14eb9b34d83e5f88ac2d
|
|
| MD5 |
4ec8202dfccbd6c91b3e3ec428e08f3d
|
|
| BLAKE2b-256 |
6297bdad26619e4ccc30eaef9dff095a130c478b83290dbb4a84d652bbaadea8
|
File details
Details for the file datapruning-1.0.5-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 112.9 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68776677046e2f923d509ff8dc869049c922f28a881f0c026dbfb0ac27b6ccf0
|
|
| MD5 |
55f3b70c387551c06278216192a52162
|
|
| BLAKE2b-256 |
58f430ae6e570acdfb71c78797959c00382d97164b047c5d58c4e16857e241b1
|
File details
Details for the file datapruning-1.0.5-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 122.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dbc979d1d45676ac2833f112c785fb03ee77de25f76d7740d7d0a100fb21ae9
|
|
| MD5 |
999021d87e33e48ebf1bd015ee2bb0ff
|
|
| BLAKE2b-256 |
f3d14baac869c88361f4ed1c1781b8b9209cbf7d39120e63072926f9b48d1b4a
|
File details
Details for the file datapruning-1.0.5-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 138.8 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25731504ef03b1df21f5fd67656acf45ae2d059405d5d80021056cb56ded7509
|
|
| MD5 |
91784acdf4b54fb109b34920851f7944
|
|
| BLAKE2b-256 |
167380dd5599bce30a423dc3adc1bbdc198d4a7b3e0a0b69b9881de290ff695d
|
File details
Details for the file datapruning-1.0.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 138.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48dd5a78ff6b953266ce39ad7a40ebfd9c4de083d9706630aac21df35010e8ce
|
|
| MD5 |
f097f7c3bbfd150bb8509b11d50a4964
|
|
| BLAKE2b-256 |
9b0493dd164b6bb83c659fdd13d5a61ce9eb5dea4312ad17e2c3b65b9f3335e9
|
File details
Details for the file datapruning-1.0.5-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 113.3 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b0bd8f3a477cf427fef6582746ceeb27d190bbc62f7d683896883f8d5d599ec
|
|
| MD5 |
b65bb77b0ece59db845cc7233f4d084c
|
|
| BLAKE2b-256 |
e004a3912b846584f7ee097777165697b4cd0caa1540594c85f9144b71e61256
|
File details
Details for the file datapruning-1.0.5-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 123.0 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cec7b35b13f683bafa112bce974660e0e378dc3b8d8d85632a69ceb614a0945
|
|
| MD5 |
1295923d01e9eb07c51f9e5d5e3514f7
|
|
| BLAKE2b-256 |
eef884868a153fd7b1725a9d7f402f5ece5e94de19df8c83eef4dfc708d08a3b
|
File details
Details for the file datapruning-1.0.5-cp310-cp310-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 144.2 kB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d7a742de1d999837869ce2f0a4aa8c3ad08cb76a92a4be45cc1f35b1c0b078f
|
|
| MD5 |
d7570452b8421317771448d2991faf17
|
|
| BLAKE2b-256 |
f7c652cf8e3f4dcc2a208961419df8421143b68bdcd5fb97845249f9358e1dcf
|
File details
Details for the file datapruning-1.0.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 143.7 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
749ed5d8b1a7947dd13fcd3ab57d5ede65c762f6396c3e24aad048e6c9810904
|
|
| MD5 |
0e9651bde3bfa19dac957d994f592fd6
|
|
| BLAKE2b-256 |
f944f1f5c6d2a4722eafaee28db90760ef15dcd3b16bf6e93882e71433328951
|
File details
Details for the file datapruning-1.0.5-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: datapruning-1.0.5-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 116.3 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e2cee5b4eaaa1b9da95db81cbc9bd0bf845ab411173d1e874df5e77554deb83
|
|
| MD5 |
67547ad63904d6e02d7309bdeafe3aad
|
|
| BLAKE2b-256 |
fa1a48801514ec87f4da47cbf11473207d3ea04555ad01befb5ddf4a964deb6a
|