🚀 Welcome to KMR - Keras Model Registry
🎯 Production-Ready Tabular AI
Build sophisticated tabular models with 38+ specialized layers, smart preprocessing, and intelligent feature engineering - all designed exclusively for Keras 3.
🎯 What is KMR?
KMR (Keras Model Registry) is a comprehensive collection of production-ready layers and models designed specifically for tabular data processing with Keras 3. Our library provides:
- 🧠 Advanced Attention Mechanisms for tabular data
- 🔧 Feature Engineering Layers for data preprocessing
- 🏗️ Pre-built Models for common ML tasks
- 📊 Data Analysis Tools for intelligent layer recommendations
- ⚡ Keras 3 Native - No TensorFlow dependencies in production code
Why KMR?
KMR eliminates the need to build complex tabular models from scratch. Our layers are battle-tested, well-documented, and designed to work seamlessly together.
🚀 Quick Start
Installation
# Install from PyPI (recommended)
pip install kmr
# Or install from source using Poetry
git clone https://github.com/UnicoLab/keras-model-registry
cd keras-model-registry
poetry install
Basic Usage
import keras
from kmr.layers import DistributionTransformLayer, GatedFeatureFusion
# Create sample tabular data
inputs = keras.Input(shape=(10,)) # 10 features
# Smart data preprocessing
transformed = DistributionTransformLayer(transform_type='auto')(inputs)
# Create two feature representations
linear_features = keras.layers.Dense(16, activation='relu')(transformed)
nonlinear_features = keras.layers.Dense(16, activation='tanh')(transformed)
# Intelligently combine features
fused = GatedFeatureFusion()([linear_features, nonlinear_features])
# Final prediction
outputs = keras.layers.Dense(1, activation='sigmoid')(fused)
model = keras.Model(inputs=inputs, outputs=outputs)
print("✅ Model ready! Smart preprocessing + intelligent feature fusion.")
That's it!
In just a few lines, you've created a sophisticated tabular model with automatic data transformation and intelligent feature fusion!
🧩 What's Inside KMR?
-
38+ Production Layers
Advanced attention mechanisms, feature processing, and specialized architectures ready for production use.
-
Smart Preprocessing
Automatic data transformation, date encoding, and intelligent feature engineering layers.
-
Pre-built Models
Ready-to-use models like BaseFeedForwardModel and SFNEBlock for common ML tasks.
-
Data Analyzer
Intelligent CSV analysis tool that recommends the best layers for your specific data.
📚 Documentation Highlights
Our documentation is designed to be developer-friendly with:
- ✨ Rich Docstrings: Every layer includes comprehensive examples, best practices, and performance notes
- 🎯 Usage Examples: Multiple scenarios from basic to advanced
- ⚡ Performance Tips: Memory usage, scalability, and optimization guidance
- 🔗 Cross-references: Easy navigation between related components
Try the Interactive Examples
Check out our Rich Docstrings Showcase to see the comprehensive documentation in action!
🎨 Key Features
- Graph-based Processing: Learn feature relationships dynamically
- Multi-head Attention: Capture complex feature interactions
- Hierarchical Aggregation: Efficient processing of large feature sets
- Residual Connections: Stable training and better gradients
- Keras 3 Native: Latest Keras features and optimizations
- Memory Efficient: Optimized for large-scale tabular data
- GPU Ready: Full GPU acceleration support
- Serializable: Save and load models seamlessly
- Type Annotations: Complete type hints for better IDE support
- Comprehensive Testing: Extensive test coverage
- Clear Documentation: Rich docstrings with examples
- Modular Design: Mix and match layers as needed
🚀 Why Choose KMR?
Production Ready
All layers are battle-tested, well-documented, and designed for production use with comprehensive error handling and validation.
Keras 3 Exclusive
Built exclusively for Keras 3 with no TensorFlow dependencies in production code, ensuring compatibility and performance.
Rich Documentation
Every layer includes comprehensive examples, best practices, performance notes, and usage guidance.
Modular Design
Mix and match layers to build custom architectures that fit your specific use case.
🎯 Perfect For
🤝 Contributing
We welcome contributions! Whether you're:
- 🐛 Reporting bugs or suggesting improvements
- 🧩 Adding new layers or models
- 📝 Improving documentation or examples
- 🔍 Enhancing data analysis tools
Check out our Contributing Guide to get started!
📖 Next Steps
- 📋 Browse Examples: Start with our Examples Overview
- 🧩 Explore Layers: Check out the Layers API
- 🏗️ Build Models: See available Models
- 🔍 Analyze Data: Try our Data Analyzer
Ready to build amazing tabular models? Let's get started! 🚀