{"id":44526106,"url":"https://github.com/unicolab/keras-data-processor","last_synced_at":"2026-02-13T18:02:40.275Z","repository":{"id":227667416,"uuid":"769308510","full_name":"UnicoLab/keras-data-processor","owner":"UnicoLab","description":"Data Preprocessing model based on Keras preprocessing layers that can be used as a standalone model or incorporated to Keras model as first layers.","archived":false,"fork":false,"pushed_at":"2025-11-14T21:43:57.000Z","size":11321,"stargazers_count":7,"open_issues_count":8,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-20T15:04:38.594Z","etag":null,"topics":["data","keras","layers","preprocessing","tensorflow"],"latest_commit_sha":null,"homepage":"https://unicolab.github.io/keras-data-processor/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UnicoLab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing/development/auto-documentation.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-08T19:22:05.000Z","updated_at":"2025-11-18T19:33:42.000Z","dependencies_parsed_at":"2025-04-19T09:32:49.487Z","dependency_job_id":"e3d87742-4777-4a54-9c87-dc1e38e86033","html_url":"https://github.com/UnicoLab/keras-data-processor","commit_stats":null,"previous_names":["piotrlaczkowski/keras-data-processor","unicolab/keras-data-processor"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/UnicoLab/keras-data-processor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicoLab%2Fkeras-data-processor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicoLab%2Fkeras-data-processor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicoLab%2Fkeras-data-processor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicoLab%2Fkeras-data-processor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnicoLab","download_url":"https://codeload.github.com/UnicoLab/keras-data-processor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicoLab%2Fkeras-data-processor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29414277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","keras","layers","preprocessing","tensorflow"],"created_at":"2026-02-13T18:01:43.407Z","updated_at":"2026-02-13T18:02:40.252Z","avatar_url":"https://github.com/UnicoLab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌟 Keras Data Processor (KDP) - Powerful Data Preprocessing for TensorFlow 🌟\n\n\u003cdiv align=\"center\"\u003e\n\n  \u003cimg src=\"docs/getting-started/imgs/kdp_logo.png\" width=\"350\" alt=\"Keras Data Processor Logo\"/\u003e\n\n\n\n  \u003cp\u003e\u003cstrong\u003eProvided and maintained by \u003ca href=\"https://unicolab.ai\"\u003e🦄 UnicoLab\u003c/a\u003e\u003c/strong\u003e\u003c/p\u003e\n\n\u003c/div\u003e\n\n[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)\n[![TensorFlow 2.18+](https://img.shields.io/badge/tensorflow-2.18+-orange.svg)](https://www.tensorflow.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![🦄 UnicoLab](https://img.shields.io/badge/UnicoLab-Enterprise%20AI-blue.svg)](https://unicolab.ai)\n[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://unicolab.github.io/keras-data-processor/)\n\n**Transform your raw data into ML-ready features with just a few lines of code!**\n\nKDP 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. Built with ❤️ by [🦄 UnicoLab](https://unicolab.ai), it provides a clean, efficient, and extensible foundation for building sophisticated machine learning models for enterprise AI applications.\n\n## ✨ Key Features\n\n- 🚀 **Efficient Single-Pass Processing**: Process all features in one go, dramatically faster than alternatives\n- 🧠 **Distribution-Aware Encoding**: Automatically detects and optimally handles different data distributions\n- 👁️ **Tabular Attention**: Captures complex feature interactions for better model performance\n- 🔍 **Feature Selection**: Automatically identifies and focuses on the most important features\n- 🔄 **Feature-wise Mixture of Experts**: Specialized processing for different feature types\n- 📦 **Production-Ready**: Deploy your preprocessing along with your model as a single unit\n\n## 🚀 Quick Installation\n\n```bash\n# Using pip\npip install kdp\n\n# Using Poetry\npoetry add kdp\n```\n\n## 📋 Simple Example\n\n```python\nfrom kdp import PreprocessingModel, FeatureType\n\n# Define your features\nfeatures_specs = {\n    \"age\": FeatureType.FLOAT_NORMALIZED,\n    \"income\": FeatureType.FLOAT_RESCALED,\n    \"occupation\": FeatureType.STRING_CATEGORICAL,\n    \"description\": FeatureType.TEXT\n}\n\n# Create and build the preprocessor\npreprocessor = PreprocessingModel(\n    path_data=\"data/my_data.csv\",\n    features_specs=features_specs,\n    # Enable advanced features\n    use_distribution_aware=True,\n    tabular_attention=True\n)\nresult = preprocessor.build_preprocessor()\nmodel = result[\"model\"]\n\n# Use the preprocessor with your data\nprocessed_features = model(input_data)\n```\n\n## 📚 Comprehensive Documentation\n\nWe've built an extensive documentation system to help you get the most from KDP:\n\n### Core Guides\n\n- [🚀 Quick Start Guide](docs/quick_start.md) - Get up and running in minutes\n- [📊 Feature Processing](docs/features.md) - Learn about all supported feature types\n- [🧙‍♂️ Auto-Configuration](docs/auto_configuration.md) - Let KDP configure itself for your data\n\n### Advanced Topics\n\n- [📈 Distribution-Aware Encoding](docs/distribution_aware_encoder.md) - Smart handling of different distributions\n- [👁️ Tabular Attention](docs/tabular_attention.md) - Capture complex feature interactions\n- [🔢 Advanced Numerical Embeddings](docs/advanced_numerical_embeddings.md) - Rich representations for numbers\n- [🤖 Transformer Blocks](docs/transformer_blocks.md) - Apply transformer architecture to tabular data\n- [🎯 Feature Selection](docs/feature_selection.md) - Focus on what matters in your data\n- [🧠 Feature-wise Mixture of Experts](docs/feature_moe.md) - Specialized processing per feature\n\n### Integration \u0026 Performance\n\n- [🔗 Integration Guide](docs/integrations.md) - Use KDP with existing ML pipelines\n- [🚀 Tabular Optimization](docs/tabular_optimization.md) - Supercharge your preprocessing\n- [📈 Performance Tips](docs/complex_examples.md) - Handling large datasets efficiently\n\n### Background \u0026 Resources\n\n- [💡 Motivation](docs/motivation.md) - Why we built KDP\n- [🤝 Contributing](docs/contributing.md) - Help improve KDP\n\n## 🖼️ Model Architecture\n\nYour preprocessing pipeline is built as a Keras model that can be used independently or as the first layer of any model:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/features/imgs/models/all_basic_types.png\" width=\"800\"/\u003e\n\u003c/p\u003e\n\n## 📊 Performance\n\nKDP outperforms alternative preprocessing approaches, especially as data size increases:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/getting-started/imgs/time_vs_nr_data.png\" width=\"400\"/\u003e\n  \u003cimg src=\"docs/getting-started/imgs/time_vs_nr_features.png\" width=\"400\"/\u003e\n\u003c/p\u003e\n\n## 🤝 Contributing\n\nWe welcome contributions! Please check out our [Contributing Guide](docs/contributing.md) for guidelines on how to proceed.\n\n## 💬 Join Our Community\n\nHave questions or want to connect with other KDP users? Join us on Discord:\n\n[![Discord](https://img.shields.io/badge/Discord-Join%20Us-7289DA?logo=discord\u0026logoColor=white)](https://discord.gg/ZQHk5fV7mt)\n\n## 🛠️ Development Tools\n\nKDP includes tools to help developers:\n\n- **Documentation Generation**: Automatically generate API docs from docstrings\n- **Model Diagram Generation**: Visualize model architectures with `make generate_doc_content` or run:\n  ```bash\n  python scripts/generate_model_diagrams.py\n  ```\n  This creates diagram images in `docs/features/imgs/models/` for all feature types and configurations.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## 🙏 Acknowledgments\n\n- Built with [TensorFlow](https://www.tensorflow.org/) and [Keras](https://keras.io/)\n- Inspired by modern deep learning research\n- Community-driven development\n- All contributors who help make KDP better\n\n---\n\n\u003cp align=\"center\"\u003e\n\n  \u003cstrong\u003eBuilt with ❤️ for the ML community by 🦄 UnicoLab.ai\u003c/strong\u003e\n\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicolab%2Fkeras-data-processor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicolab%2Fkeras-data-processor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicolab%2Fkeras-data-processor/lists"}