Skip to content

🚀 Welcome to KMR - Keras Model Registry

KMR Logo

🧩 Reusable Model Architecture Bricks in Keras 3

🏢 Provided and maintained by UnicoLab

🎯 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.

    Explore Layers

  • Smart Preprocessing


    Automatic data transformation, date encoding, and intelligent feature engineering layers.

    See Examples

  • Pre-built Models


    Ready-to-use models like BaseFeedForwardModel and SFNEBlock for common ML tasks.

    View Models

  • Data Analyzer


    Intelligent CSV analysis tool that recommends the best layers for your specific data.

    Try Analyzer

📚 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

### 🏢 Enterprise ML Teams - **Scalable Architecture**: Handle large-scale tabular datasets - **Production Ready**: Battle-tested layers with comprehensive testing - **Team Collaboration**: Clear documentation and consistent APIs
### 🔬 Research & Development - **Cutting-edge Techniques**: Latest attention mechanisms and graph processing - **Experimentation**: Easy to combine and modify layers - **Reproducibility**: Well-documented with examples
### 🎓 Learning & Education - **Rich Examples**: Comprehensive documentation with real-world examples - **Best Practices**: Learn from production-ready implementations - **Interactive**: Try examples and modify them for learning

🤝 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

  1. 📋 Browse Examples: Start with our Examples Overview
  2. 🧩 Explore Layers: Check out the Layers API
  3. 🏗️ Build Models: See available Models
  4. 🔍 Analyze Data: Try our Data Analyzer

Ready to build amazing tabular models? Let's get started! 🚀