Skip to main content

The complete ML toolkit — EDA, cleaning, training, explainability, deployment

Project description

mlpilot 🚀

The complete, unbreakable machine learning toolkit — from raw data to production in seconds.

License: MIT


🌟 The Vision: "Unbreakable & Honest Data Science"

Most Machine Learning libraries fail when things get messy—or worse, they give you "perfect" results that fall apart in production. mlpilot is built for the real world. It is a self-healing, zero-config environment that ensures your models are both Unbreakable and Statistically Honest.

  • Leakage Guard (v2.0.2): Advanced proxy detection. Automatically drops features with >0.98 correlation to the target to prevent "cheating" and ensure realistic hackathon winning scores.
  • Self-Healing 2.0: Real-time syntax correction and "Hallucination Immunity" for AI-generated code.
  • Global Encoding Shield: Revolutionary protection against UnicodeEncodeError on legacy Windows terminals.
  • Silent Production: Absolute suppression of 3rd-party technical noise (HuggingFace, Transformers, etc.).

⚡ Quick Start: The "Omni-Pipeline"

Execute a professional, honest ML workflow in 10 lines of code. For a detailed step-by-step guide, see our 🚀 Hands-On Tutorial (Titanic).

import mlpilot as ml
import seaborn as sns

# 1. Load data
try:
    df = sns.load_dataset('titanic')
except:
    import pandas as pd
    df = pd.read_csv("your_data.csv")

# 2. The Unbreakable Pipeline
clean = ml.clean(df, target='survived')              # Hardens data & DROPS LEAKY PROXIES (like 'alive')
X, y  = ml.features(clean.df, target='survived')     # Zero-leakage engineering
blitz = ml.baseline(X, y)                            # Verified model tournament
tuned = ml.tune(blitz.best_name, X, y, time_budget=30) # Smart hyperparameter tuning

# 3. Defensible Verdict (Realistic accuracy, not 1.0)
print(f"Winner: {blitz.best_name} | Score: {blitz.best_score:.4f}")

📋 Module Encyclopedia

🧬 Phase 1: Data Foundations & Cleansing

  • ml.analyze(df): 12-section SmartEDA report with quality scoring.
  • ml.clean(df): The ultimate hardening tool. Handles nulls, outliers, dtypes, duplicates, and Data Leakage Detection.
  • ml.validate(df, schema): Verifies your data against a strictly inferred industrial schema.

🧪 Phase 2: The Predictive Core

  • ml.features(df): Leakage-safe fit_transform() engine. Statistics are learned from training data ONLY.
  • ml.baseline(X, y): A high-speed model tournament. Compares 12+ model families to find the best baseline.
  • ml.tune(name, X, y): Budget-aware hyperparameter tuning using a local optimization engine.
  • ml.evaluate(model, X, y): Generates a 5-metric technical report with confusion matrices.

🔍 Phase 3: Specialized Insight

  • ml.explain(model, X): Professional interpretability (SHAP). Tells you exactly why a prediction was made.
  • ml.balance(df): Fixes class imbalance using intelligent oversampling (SMOTE).
  • ml.forecast(series): TimeSense — Advanced multi-model time-series forecasting.

🧠 Advanced: The "Unbreakable" Engine

Colab AI Integration (v2.0.7)

Running heavy ML workloads in the browser? mlpilot includes a dedicated Google Colab integration point. ml.colab_setup() automatically bypasses Colab restrictions to securely launch a local inference server for the analyst and audit tools, guaranteeing 100% reliability for Natural Language AI without needing cloud API keys.

Smart Leakage Guard (v2.0.2)

In the real world, datasets often include "cheating" columns (proxies) that are direct synonyms for the target. mlpilot v2.0.2 introduces the Leakage Guard. It calculates feature-target correlation in real-time and drops variables with > 0.98 correlation. This prevents "Fake Perfect Scores" and ensures your hackathon results are trustworthy and defensible.

AST-Healing & Hallucination Immunity

mlpilot scans every line of AI-generated code against Python standards. It automatically purges hallucinations and redirects file-load errors to data already in memory, ensuring zero crashes during Natural Language interactions.

The Encoding Shield

Windows legacy terminals (CP1252) often crash when a library prints emojis. mlpilot features a Global Encoding Shield that automatically sanitizes all output for your specific terminal in real-time.


📦 Installation & Environments

Standard Build (v2.0.7):

pip install mlplt==2.0.7

GitHub Repository: https://github.com/Anannya-Vyas/mlplt-my-python-library-


🤝 Contributing & Support

MLPilot is a professional-grade machine learning toolkit. We welcome bug reports and collaborations.

Current Version: v2.0.7 (The "Public Professional" Release)

MIT © 2026 mlpilot

Project details


Download files

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

Source Distribution

mlplt-2.0.7.tar.gz (95.7 kB view details)

Uploaded Source

Built Distribution

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

mlplt-2.0.7-py3-none-any.whl (103.0 kB view details)

Uploaded Python 3

File details

Details for the file mlplt-2.0.7.tar.gz.

File metadata

  • Download URL: mlplt-2.0.7.tar.gz
  • Upload date:
  • Size: 95.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mlplt-2.0.7.tar.gz
Algorithm Hash digest
SHA256 d138c3849c67d144a496dccce8a88a318e84579a26f78896f76396cca3307e2b
MD5 144d7eb7317714852a9dec07a4832434
BLAKE2b-256 7685c3580ba775c99b0d03bd7d1bf454b872e83dbb9147617053f941ab041657

See more details on using hashes here.

File details

Details for the file mlplt-2.0.7-py3-none-any.whl.

File metadata

  • Download URL: mlplt-2.0.7-py3-none-any.whl
  • Upload date:
  • Size: 103.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mlplt-2.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f411e5a72393a11cbd1d8fe89fbc65e5ae5b35599580bdde436b08451006f7ef
MD5 b75d8ba62c431a184f34ee01287e0c29
BLAKE2b-256 c870b36ee6ad09384557e83ba75551d134674cd42a6aa35653c0dda1b52831e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page