Skip to main content

KiteML Banner

🪁 KiteML

Train, evaluate, and deploy production-grade ML models with a single line of code.

An intelligent, full-stack AutoML framework featuring automated data profiling, data leakage detection, DAG transformation pipelines, REST API serving, ONNX/Docker deployment, and live drift monitoring.

PyPI Version Python Versions Tests Status License Downloads Documentation


📖 Table of Contents


⚡ Quick Code Showcase

from kiteml import train, load

# 1. Train an optimal model in a single function call
result = train("customer_churn.csv", target="Exited")

# 2. Inspect automated execution diagnostics and metrics
print(result.summary())
print(result.diagnostics())

# 3. Generate batch predictions on unseen inference data
predictions = result.predict(new_customers_df)

# 4. Save trained artifact for production deployment
result.save_model("churn_model.pkl")

Execution Diagnostics Output

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🪁 KiteML Execution Diagnostics
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Status             SUCCESS
  Errors             0
  Warnings           1 (KML-W-201: Moderate class imbalance detected)
  Suggestions        2 (Apply SMOTE resampling or class_weight='balanced')
  Validation         Passed (Zero data leakage detected)
  Training           Completed in 1.42 seconds (5-Fold CV)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

💡 Why KiteML?

Traditional machine learning workflows require writing hundreds of lines of boilerplate code to clean missing values, encode categorical variables, scale numerical features, prevent data leakage, tune hyperparameters, build REST APIs, and monitor drift in production.

KiteML solves this by providing an end-to-end, intelligent AutoML engine:

  • ✔ Zero Boilerplate: Automate preprocessing, feature engineering, model selection, and metrics scoring in 1 line of Python.
  • ✔ Data Leakage Prevention: Built-in LeakageDetector intercepts target proxies and temporal leakage before training folds are split.
  • ✔ Deterministic DAG Execution: Transformation pipelines execute as a Directed Acyclic Graph (DAG) for total reproducibility.
  • ✔ Developer Experience First: Clear error codes (KML-XXX), warning policy controls (KML-W-XXX), and fuzzy string column matching (prcie -> Price).
  • ✔ Production Ready Out-of-the-Box: Deploy models instantly to FastAPI REST servers (kiteml serve), ONNX runtime graphs, or containerized Docker packages with SHA-256 integrity checksums.
  • ✔ Live Drift Monitoring: Monitor production inference streams for statistical population drift (PSI & KS-tests).

📊 Feature Comparison Matrix

Capability KiteML scikit-learn PyCaret Auto-sklearn
Single-Line AutoML Training Yes ❌ Manual ✅ Yes ✅ Yes
Automatic Data Leakage Interceptor Built-in ❌ Manual ⚠️ Limited ❌ No
DAG Transformation Engine Native ⚠️ Pipeline ❌ No ❌ No
Structured Diagnostic Exceptions (KML-XXX) Built-in ❌ Generic ❌ Generic ❌ Generic
Fuzzy Typo Column Matcher Built-in ❌ No ❌ No ❌ No
Native .kml SHA-256 Binary Packaging Built-in ❌ Pickle only ❌ Pickle only ❌ No
Built-in FastAPI Server (kiteml serve) Native CLI ❌ Manual ❌ Manual ❌ No
ONNX Model Graph Conversion Built-in ⚠️ Extra ❌ Manual ❌ No
Docker Container Packager Built-in ❌ Manual ⚠️ Limited ❌ No
Live PSI Drift Monitoring Built-in ❌ No ❌ No ❌ No
Automated Model Card (model_card.json) Built-in ❌ No ❌ No ❌ No

📦 Installation

Install KiteML from PyPI using pip:

pip install kiteml-ai

Import Note: The PyPI package name is kiteml-ai. In Python code, import the library as import kiteml.

Optional Extras Bundles

Depending on your production requirements, you can install specialized optional extras:

pip install kiteml-ai[serving]   # FastAPI model server & OpenAPI docs
pip install kiteml-ai[onnx]      # ONNX export support & ONNX Runtime
pip install kiteml-ai[wandb]     # Weights & Biases experiment tracking
pip install kiteml-ai[mlflow]    # MLflow experiment tracking adapter
pip install kiteml-ai[all]       # Complete ecosystem dependencies

🚀 30-Second Quick Start

1. Python API

from kiteml import train, load
import pandas as pd

# Classification Task
result = train("customer_churn.csv", target="Exited")
print(result.summary())

# Make predictions on new inference data
predictions = result.predict(new_dataframe)

# Save best model artifact
result.save_model("churn_model.pkl")

# Reload model artifact
model = load("churn_model.pkl")

2. Command Line Interface (CLI)

KiteML features a 14-command Rich terminal CLI out-of-the-box:

# 1. Profile dataset for data leakage, imbalance, and quality issues
kiteml profile dataset.csv --target churn

# 2. Train an optimal model and save artifact
kiteml train dataset.csv --target churn --save model.pkl

# 3. Serve model instantly via FastAPI REST server on port 8000
kiteml serve model.pkl --port 8000

# 4. Generate batch predictions on a new CSV file
kiteml predict model.pkl new_data.csv --output predictions.csv

# 5. Validate environment setup and hardware drivers
kiteml doctor

3. Unified DAG Pipeline (KiteMLPipeline)

For production workflows requiring explicit pipeline building, transformation DAG inspection, and package serialization:

from kiteml import KiteMLPipeline
import pandas as pd

df = pd.read_csv("housing.csv")

# Initialize orchestrator
pipeline = KiteMLPipeline()

# Execute DAG build (preprocessing -> feature engineering -> selection)
build_result = pipeline.build(df, target="price")

# Inspect pipeline summary and replay timeline
print(build_result.report.summary())

# Transform incoming DataFrames through trained DAG
transformed_df = pipeline.transform(new_df)

# Save as production .kml package protected by SHA-256 checksum
pipeline.save("housing_pipeline.kml")

# Reload serialized pipeline package in production
loaded_pipeline = KiteMLPipeline.load("housing_pipeline.kml")

🏛️ Architecture & Epics Breakdown

KiteML is architected across five completed core epics:

graph TD
    RawData[Raw Dataset] --> Intel[Epic 1: Intelligence Layer]
    Intel --> Valid[Epic 2: Validation Layer]
    Valid --> DX[Epic 3: Developer Experience]
    DX --> Pipeline[Epic 4: Intelligent ML Pipeline DAG]
    Pipeline --> Deploy[Epic 5: Intelligent Training & Deployment]

    subgraph "Epic 1: Intelligence Layer"
        Intel --> Profiler[Data Profiler]
        Intel --> Leakage[Leakage Detector]
        Intel --> Imbalance[Imbalance Detector]
        Intel --> SHAP[SHAP Explainability]
    end

    subgraph "Epic 4: Intelligent ML Pipeline"
        Pipeline --> Preproc[Auto Preprocessing]
        Pipeline --> FE[Feature Engineering]
        Pipeline --> FS[Voting Feature Selection]
        Pipeline --> Serial[.kml Serialization]
    end

    subgraph "Epic 5: Intelligent Deployment"
        Deploy --> Serving[FastAPI Model Server]
        Deploy --> ONNX[ONNX Graph Exporter]
        Deploy --> Docker[Docker Packager]
        Deploy --> Drift[PSI Drift Monitor]
    end

Epic 1: Intelligence Layer

  • Data Profiler: Analyzes dataset shape, data types, missingness, and cardinality.
  • Leakage Detector: Scans features for target proxies and temporal leakage prior to splitting.
  • Imbalance Detector: Identifies class imbalance ratios and recommends SMOTE / class-weight corrections.
  • SHAP Explainability: Computes global and local feature contribution scores.

Epic 2: Validation Layer

  • Schema Contracts: Enforces column name and data type validation.
  • Target Sanity: Validates target column existence and problem compatibility.
  • Data Quality Guards: Intercepts zero-variance and duplicate feature columns.

Epic 3: Developer Experience (DX) Framework

  • Structured Error Catalog (KML-XXX): Readable error codes with multi-format renderers (Terminal, Markdown, HTML, JSON).
  • Warning Policies (KML-W-XXX): Configurable warning escalation levels (ignore, info, warn, error).
  • Fuzzy Typo Matcher: Suggests correct column names when typos occur (e.g., prcie -> Price).

Epic 4: Intelligent ML Pipeline

  • DAG Engine: Directed Acyclic Graph orchestrating preprocessing, engineering, and selection stages.
  • Voting Feature Selection: Multi-selector voting aggregator combining variance thresholds, correlation filters, mutual information, and tree importances.
  • .kml Serialization: Native binary packaging with SHA-256 integrity verification.

Epic 5: Intelligent Training & Deployment

  • FastAPI Model Server: Auto-generated REST APIs with Swagger OpenAPI docs (/docs), /predict, and /health endpoints.
  • ONNX & Docker Packaging: Convert models to ONNX runtime graphs or complete Docker container environments.
  • Population Stability Index (PSI) Drift Monitor: Tracks statistical distribution drift on live inference streams.

📁 Example Projects Gallery

Explore production-ready runnable code examples in the repository:


📈 Benchmarks & Performance

Benchmark evaluations executed across standard tabular datasets (10,000 rows, 20 features):

Dataset Task Algorithm Candidate Accuracy / RMSE Training Time Memory Reduction
Telco Customer Churn LightGBM Classifier 0.8650 F1 1.42s -42% RAM (Downcasted)
California Housing Random Forest Regressor $48,210 RMSE 2.15s -35% RAM (Downcasted)
Credit Card Fraud XGBoost Classifier 0.9120 ROC-AUC 1.85s -50% RAM (Downcasted)

📚 Documentation Navigation

Full interactive documentation, user guides, API specifications, and Jupyter Notebook tutorials are published live on GitHub Pages:

🌐 KiteML Official Documentation Site

Documentation Site Structure
├── Getting Started       https://priyatham27.github.io/kiteML/getting-started/
├── User Guides           https://priyatham27.github.io/kiteML/user-guide/
├── API Reference         https://priyatham27.github.io/kiteML/api/
├── Architecture Specs   https://priyatham27.github.io/kiteML/architecture/
├── Interactive Tutorials https://priyatham27.github.io/kiteML/tutorials/
└── FAQ                   https://priyatham27.github.io/kiteML/faq/

🗺️ Roadmap & Release Milestones

v1.0.2 (Current Release)
├── ✅ Completed Epics 1–5 (Intelligence, Validation, DX, Intelligent Pipeline, Training & Deployment)
├── ✅ Single-line train() API & KiteMLPipeline DAG Orchestration
├── ✅ .kml Binary Package Format with SHA-256 Checksums
└── ✅ FastAPI Serving, ONNX Export, Docker Packaging & PSI Drift Monitoring

v1.1.0 (Upcoming Q4 2026 Milestone)
├── ⏳ Automated Time-Series Forecasting Engine (ARIMA / Prophet integration)
├── ⏳ Multi-Modal Text Feature Extraction (Transformer Embeddings)
└── ⏳ Distributed Hyperparameter Tuning (Ray / Optuna distributed)

v2.0.0 (Long-Term Vision)
├── 🔮 Self-Healing Production Pipelines (Automatic retraining triggers on drift)
└── 🔮 LLM-Assisted Automated Data Cleaning Agents

🤝 Contributing & Community

We welcome community contributions! Please read our Contributing Guide to set up your development environment:

# 1. Clone repository
git clone https://github.com/Priyatham27/kiteML.git
cd kiteML

# 2. Create virtual environment and install in editable mode
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -e ".[dev,all]"

# 3. Run unit tests
pytest tests/

📄 License

KiteML is released under the MIT License.

Built with care by the KiteML Team & Open Source Community

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kiteml_ai-1.0.2.tar.gz (275.3 kB view details)

Uploaded Source

Built Distribution

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

kiteml_ai-1.0.2-py3-none-any.whl (348.4 kB view details)

Uploaded Python 3

File details

Details for the file kiteml_ai-1.0.2.tar.gz.

File metadata

  • Download URL: kiteml_ai-1.0.2.tar.gz
  • Upload date:
  • Size: 275.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for kiteml_ai-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5b79c3869730d6c4aac04426257482ba27b4f9c10a65c8df136bcf1a4158a8f2
MD5 489e6bbff33ac679ac17653820c3ce86
BLAKE2b-256 e3dc94c60a764b5724925cb0d541c12144e1eaf9d46a4ae6da50ffb0b9bb5605

See more details on using hashes here.

File details

Details for the file kiteml_ai-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: kiteml_ai-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 348.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for kiteml_ai-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f0b3bfcf8083bb9e94cdeb85bb7c3fed0f886178549d39e79093389fd13d566
MD5 4424325cc9d3cfa69411a0efef342790
BLAKE2b-256 6dc51b8466d1ab2e90eb96f36ad42a606169265b0ee62d14228f33de8902ac0b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page