Skip to main content

A library for dataset quality checks, preprocessing, and report generation

Project description

HashPrep

Dataset Profiler & Debugger for Machine Learning

[!WARNING]
This repository is under active development and may not be stable.

Overview

HashPrep is a Python library for intelligent dataset profiling and debugging that acts as a comprehensive pre-training quality assurance tool for machine learning projects. Think of it as "Pandas Profiling + PyLint for datasets", designed specifically for machine learning workflows.

It catches critical dataset issues before they derail your ML pipeline, explains the problems, and suggests context-aware fixes.
If you want, HashPrep can even apply those fixes for you automatically.


Features

Key features include:

  • Intelligent Profiling: Detect missing values, skewed distributions, outliers, and data type inconsistencies.
  • ML-Specific Checks: Identify data leakage, dataset drift, class imbalance, and high-cardinality features.
  • Automated Preparation: Get suggestions for encoding, imputation, scaling, and transformations.
  • Rich Reporting: Generate statistical summaries and exportable reports (HTML/PDF/Markdown/JSON) with embedded visualizations.
  • Production-Ready Pipelines: Output reproducible cleaning and preprocessing code (fixes.py) that integrates seamlessly with ML workflows.
  • Modern Themes: Choose between "Minimal" (professional) and "Neubrutalism" (bold) report styles.

Usage

1. Quick Scan

Get a quick summary of critical issues in your terminal.

hashprep scan dataset.csv

2. Generate Report

Generate a comprehensive HTML report with visualizations.

hashprep report dataset.csv --format html --theme minimal

Options:

  • --theme: minimal (default) or neubrutalism
  • --format: html, pdf, md, or json
  • --no-visualizations: Disable plot generation for faster performance.

3. Generate Fixes

Automatically generate a Python script (dataset_fixes.py) to apply suggested fixes.

hashprep report dataset.csv --with-code

License

This project is licensed under the MIT License.


Contributing

We welcome contributions from the community to make HashPrep better!

Before you get started, please:

  • Review our CONTRIBUTING.md for detailed guidelines and setup instructions
  • Write clean, well-documented code
  • Follow best practices for the stack or component you’re working on
  • Open a pull request (PR) with a clear description of your changes and motivation

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

hashprep-0.1.0a4.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

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

hashprep-0.1.0a4-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

Details for the file hashprep-0.1.0a4.tar.gz.

File metadata

  • Download URL: hashprep-0.1.0a4.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for hashprep-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 7d1c34a0b5692e4b242eec159c727381eb5a26862a8c5f36123be49fbccf8507
MD5 77fd5d253ab978c2bec57cfc4695e9a8
BLAKE2b-256 a184996de0ad00e87b3db8dd2a1ee4680410aaeef76e09ea8dcf741d353055e0

See more details on using hashes here.

File details

Details for the file hashprep-0.1.0a4-py3-none-any.whl.

File metadata

  • Download URL: hashprep-0.1.0a4-py3-none-any.whl
  • Upload date:
  • Size: 41.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for hashprep-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 5261124c2ecc5d4941192bb57e3c4f3f1214b6172513d76835eec6a7b39d7fe2
MD5 f79dc0215036f82f89452c975c02f109
BLAKE2b-256 5b74e7863b783be4af6c98b15c7fd0b8d1aa18f623fcb89e6ae201d127edd768

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