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.

PyPI Version 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:

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

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.2):

pip install mlplt==2.0.2

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.2 (The "Trust & Transparency" 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.3.tar.gz (95.0 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.3-py3-none-any.whl (102.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlplt-2.0.3.tar.gz
  • Upload date:
  • Size: 95.0 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.3.tar.gz
Algorithm Hash digest
SHA256 e78e977711d6a6db359adae3e80c791eb47fd38472d93122b02b73f659529443
MD5 bfed0222a168bfd2dd9c6123edc2574e
BLAKE2b-256 e1036576bf7070aebbdbd5ab5c03faeab08d623414970bdcc88d3efa275104d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlplt-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 102.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f0bdac0afe2cd3d776033363790cbd5e9d11fb58916a50bef275e396a4353d72
MD5 4a3390800bcd184946894dd365e8a390
BLAKE2b-256 ef01ec79e11e07469c298d96586fc1ffc7480ab3f9131b33bccaf1f615c35020

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