Skip to content

Latest commit

 

History

History
490 lines (412 loc) · 9.66 KB

File metadata and controls

490 lines (412 loc) · 9.66 KB

📦 Installation Guide

Installation Guide

Get KDP up and running in your environment quickly and easily

📋 Overview

KDP can be installed through various methods, from simple pip installation to building from source. Choose the method that best fits your needs and environment.

🚀

Quick Installation

Simple pip install for most users

🛠️

Multiple Methods

pip, Poetry, or source installation

🧩

Optional Dependencies

Install only what you need

⚡

GPU Support

Leverage GPU acceleration

🚀 Quick Installation

pip install kdp

🛠️ Installation Methods

Using pip (Recommended)

# Basic installation
pip install kdp
</div>

Using Poetry

# Add to your project
poetry add kdp
</div>

From Source

# Clone the repository
git clone https://github.com/UnicoLab/keras-data-processor.git
cd keras-data-processor

# Install using pip
pip install -e .

# Or using poetry
poetry install
</div>

🧩 Dependencies

Core Dependencies

  • 🐍 Python 3.10+
  • 🔄 TensorFlow 2.18+ (Keras 3)
  • 🔢 NumPy 1.19+
  • 📊 Pandas 1.2+

Optional Dependencies

Package Purpose Install Command
scipy 🧪 Scientific computing and statistical functions pip install "kdp[dev]"
ipython 🔍 Interactive Python shell and notebook support pip install "kdp[dev]"
pytest ✅ Testing framework and utilities pip install "kdp[dev]"
pydot 📊 Graph visualization for model architecture pip install "kdp[dev]"
Development Tools 🛠️ All development dependencies pip install "kdp[dev]"
Documentation Tools 📚 Documentation generation tools pip install "kdp[doc]"

🖥️ GPU Support

Enable GPU Acceleration

# Install TensorFlow with GPU support
pip install tensorflow-gpu

Ensure you have the appropriate CUDA and cuDNN versions installed.

✅ Verifying Your Installation

import kdp

# Check version
print(f"KDP version: {kdp.__version__}")

# Basic functionality test
from kdp import PreprocessingModel, FeatureType
features = {"test": FeatureType.FLOAT}
model = PreprocessingModel(features_specs=features)
print("Installation successful!")

👣 Next Steps

🏁

Quick Start Guide

Learn the basics of KDP

Get Started →
🏗️

Architecture Overview

Understand KDP's components

Learn More →
🔍

Feature Processing

Explore KDP's capabilities

Explore →
<style> /* Base styling */ body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 0; } /* Feature header */ .feature-header { background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%); border-radius: 10px; padding: 30px; margin: 30px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); color: white; } .feature-title h2 { margin-top: 0; font-size: 28px; } .feature-title p { font-size: 18px; margin-bottom: 0; opacity: 0.9; } /* Overview card */ .overview-card { background-color: #fff; border-radius: 10px; padding: 20px 25px; margin: 20px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-left: 4px solid #FF5722; } .overview-card p { margin: 0; font-size: 16px; } /* Key benefits */ .key-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 30px 0; } .benefit-card { background-color: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; align-items: center; text-align: center; } .benefit-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); } .benefit-icon { font-size: 2.5em; margin-bottom: 15px; } .benefit-card h3 { margin: 0 0 10px 0; color: #FF5722; } .benefit-card p { margin: 0; } /* Installation methods */ .installation-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 30px 0; } .method-card { background-color: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; } .method-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); } .method-card h3 { margin-top: 0; color: #FF5722; } /* Dependencies */ .dependencies-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 20px; margin: 30px 0; } .dependencies-card { background-color: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); } .dependencies-card h3 { margin-top: 0; color: #FF5722; } .dependency-list { list-style: none; padding: 0; } .dependency-list li { margin: 10px 0; display: flex; align-items: center; } /* GPU support */ .gpu-support-card { background-color: #fff; border-radius: 10px; padding: 20px; margin: 30px 0; box-shadow: 0 4px 8px rgba(0,0,0,0.05); } .gpu-support-card h3 { margin-top: 0; color: #FF5722; } /* Verification */ .verification-card { background-color: #fff; border-radius: 10px; padding: 20px; margin: 30px 0; box-shadow: 0 4px 8px rgba(0,0,0,0.05); } /* Next steps */ .next-steps-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 30px 0; } .next-step-card { background-color: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; } .next-step-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); } .next-step-icon { font-size: 2.5em; margin-bottom: 15px; } .next-step-card h3 { margin: 0 0 10px 0; color: #FF5722; } .next-step-card p { margin: 0 0 15px 0; } .next-step-link { display: inline-block; padding: 8px 16px; background-color: #FF5722; color: white; text-decoration: none; border-radius: 5px; transition: background-color 0.3s ease; } .next-step-link:hover { background-color: #F4511E; } /* Code containers */ .code-container { background-color: #f8f9fa; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin: 20px 0; } .code-container pre { margin: 0; padding: 20px; } /* Tables */ .table-container { margin: 30px 0; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.05); } .config-table { width: 100%; border-collapse: collapse; } .config-table th { background-color: #FBE9E7; padding: 15px; text-align: left; font-weight: 600; border-bottom: 2px solid #FF5722; } .config-table td { padding: 12px 15px; border-bottom: 1px solid #eaecef; } .config-table tr:nth-child(even) { background-color: #f8f9fa; } .config-table tr:hover { background-color: #FBE9E7; } /* Responsive adjustments */ @media (max-width: 768px) { .key-benefits, .installation-methods, .dependencies-container, .next-steps-container { grid-template-columns: 1fr; } } </style>