Skip to main content

Data Preprocessing model based on Keras preprocessing layers

Project description

๐ŸŒŸ Keras Data Processor (KDP) - Powerful Data Preprocessing for TensorFlow

Transform your raw data into ML-ready features with just a few lines of code!

KDP provides a state-of-the-art preprocessing system built on TensorFlow Keras. It handles everything from feature normalization to advanced embedding techniques, making your ML pipelines faster, more robust, and easier to maintain.

โœจ Key Features

  • ๐Ÿš€ Efficient Single-Pass Processing: Process all features in one go, dramatically faster than alternatives
  • ๐Ÿง  Distribution-Aware Encoding: Automatically detects and optimally handles different data distributions
  • ๐Ÿ‘๏ธ Tabular Attention: Captures complex feature interactions for better model performance
  • ๐Ÿ” Feature Selection: Automatically identifies and focuses on the most important features
  • ๐Ÿ”„ Feature-wise Mixture of Experts: Specialized processing for different feature types
  • ๐Ÿ“ฆ Production-Ready: Deploy your preprocessing along with your model as a single unit

๐Ÿš€ Quick Installation

# Using pip
pip install keras-data-processor

# Using Poetry
poetry add keras-data-processor

๐Ÿ“‹ Simple Example

from kdp import PreprocessingModel, FeatureType

# Define your features
features_specs = {
    "age": FeatureType.FLOAT_NORMALIZED,
    "income": FeatureType.FLOAT_RESCALED,
    "occupation": FeatureType.STRING_CATEGORICAL,
    "description": FeatureType.TEXT
}

# Create and build the preprocessor
preprocessor = PreprocessingModel(
    path_data="data/my_data.csv",
    features_specs=features_specs,
    # Enable advanced features
    use_distribution_aware=True,
    tabular_attention=True
)
result = preprocessor.build_preprocessor()
model = result["model"]

# Use the preprocessor with your data
processed_features = model(input_data)

๐Ÿ“š Comprehensive Documentation

We've built an extensive documentation system to help you get the most from KDP:

Core Guides

Advanced Topics

Integration & Performance

Background & Resources

๐Ÿ–ผ๏ธ Model Architecture

Your preprocessing pipeline is built as a Keras model that can be used independently or as the first layer of any model:

๐Ÿ“Š Performance

KDP outperforms alternative preprocessing approaches, especially as data size increases:

๐Ÿค Contributing

We welcome contributions! Please check out our Contributing Guide for guidelines on how to proceed.

๐Ÿ› ๏ธ Development Tools

KDP includes tools to help developers:

  • Documentation Generation: Automatically generate API docs from docstrings
  • Model Diagram Generation: Visualize model architectures with make generate_doc_content or run:
    python scripts/generate_model_diagrams.py
    
    This creates diagram images in docs/features/imgs/models/ for all feature types and configurations.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • The TensorFlow and Keras teams for their amazing work
  • All contributors who help make KDP better

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

kdp-1.11.2.tar.gz (216.7 kB view details)

Uploaded Source

Built Distribution

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

kdp-1.11.2-py3-none-any.whl (136.2 kB view details)

Uploaded Python 3

File details

Details for the file kdp-1.11.2.tar.gz.

File metadata

  • Download URL: kdp-1.11.2.tar.gz
  • Upload date:
  • Size: 216.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for kdp-1.11.2.tar.gz
Algorithm Hash digest
SHA256 1db0679cdd92dd130611677fff88f476c60ed0776d731db178ead0bded55d886
MD5 2a76a4197020142a19bb326540d86b40
BLAKE2b-256 36d4154c0a7589e188963c33e22ca6f8f1d7f64d6ce5d2e899d0e0a92fb42c52

See more details on using hashes here.

File details

Details for the file kdp-1.11.2-py3-none-any.whl.

File metadata

  • Download URL: kdp-1.11.2-py3-none-any.whl
  • Upload date:
  • Size: 136.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for kdp-1.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a9e667b2d9fe4e83a62431f28aff56a410be7e7552dae84b9ec6dbb55209787e
MD5 8f22103bfb8403691571fe7f4e4848be
BLAKE2b-256 3ab25a90b14b5f4c75e8fb3a92804b734f744812e52ec02ddbbfe9b2ead3d124

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