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

pip install mlplt==2.0.4

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.4 (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.4.tar.gz (95.1 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.4-py3-none-any.whl (102.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlplt-2.0.4.tar.gz
  • Upload date:
  • Size: 95.1 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.4.tar.gz
Algorithm Hash digest
SHA256 8c4c2115316deefc8b274d5d8b28cf6a3e7dea7632e13e8f09ecee54a26cdc43
MD5 7753594c6de948bc4c54f22908645e5e
BLAKE2b-256 ed624c655204ec97277c4c49605de848a7fff8a3627e2e50d3591f2a1c778df8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlplt-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 102.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9f83761e5b961bd792aff9d77c4ea0812bd373067e11b2ebc6abb97d45912202
MD5 d47623b72c1893879294cec5c0cd678a
BLAKE2b-256 587f3575e285d37a641d6954c814854d95d047cf399972631f69f3abf64ed78e

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