Skip to main content

Modular ML toolkit with a built-in guide system for students.

Project description

mlguide 🚀

The ML toolkit that teaches you while it works.

mlguide is a modular, student-first ML toolkit with three layers:

  1. Guided Learning — a built-in interactive help system that explains ML concepts.
  2. Individual Modules — every pipeline stage is independently importable.
  3. Full Autopilotrun_pipeline() chains everything together.

Installation

pip install mlguide

Quick Start

Autopilot (one line)

from mlguide import sample_data, run_pipeline

df = sample_data("regression")
result = run_pipeline(df, target="price")

Step by Step

from mlguide import load_data, clean, split, encode, scale, train, evaluate

df = load_data("housing.csv")
df = clean(df, target="price")
X_tr, X_te, y_tr, y_te = split(df, target="price")
X_tr, enc = encode(X_tr, fit=True)
X_te, _   = encode(X_te, encoder=enc)
X_tr, sc  = scale(X_tr, fit=True)
X_te, _   = scale(X_te, scaler=sc)
model     = train(X_tr, y_tr, model="random_forest")
metrics   = evaluate(model, X_te, y_te)

Need Help?

from mlguide import guide

guide()              # overview
guide("ml_basics")   # what is ML?
guide("split")       # why we split data
guide("train")       # all available models
guide("cheatsheet")  # compact reference

Features

  • Zero data leakage — split before encode/scale is enforced by architecture.
  • Transparent — every function logs what it did and why.
  • Modular — use any function independently.
  • Student-friendly errors — typo suggestions, available column listings, clear next-step guidance.
  • Lightweight — only pandas, numpy, scikit-learn, and joblib.
  • Bundled datasetssample_data("regression") for instant practice.
  • Text & NLP Extraction — builtin regex extraction and preprocessing without external NLP libraries.

API Reference

Function Description
guide(topic) Interactive help system
run_pipeline(source, target) Full autopilot pipeline
load_data(source) Load CSV or DataFrame
sample_data(name) Bundled practice datasets
clean(df, target) Clean data (nulls, duplicates, cardinality)
split(df, target) Train/test split with auto-stratification
encode(X, fit=True) One-Hot Encode categorical columns
scale(X, method) Scale numeric features
detect_task(y) Infer regression vs classification
train(X, y, model) Train a model
compare_models(X, y) Cross-validated model comparison
evaluate(model, X, y) Evaluate on test set
predict(model, data) Make predictions
save_model(model, path) Save model bundle
load_model(path) Load model bundle
get_feature_importance(model) Feature importance table
extract_emails(), extract_phones() Regex-based extraction
clean_text() Full NLP preprocessing pipeline

License

MIT — Joel Inian Francis

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

mlguide-1.0.0.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

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

mlguide-1.0.0-py3-none-any.whl (68.4 kB view details)

Uploaded Python 3

File details

Details for the file mlguide-1.0.0.tar.gz.

File metadata

  • Download URL: mlguide-1.0.0.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for mlguide-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c4fecf4e15ea81fdcc2b3c6f42bae4d3519f2a134a6d70400e337d6e7c492346
MD5 b0a68511bf442e3845a7d49f62948456
BLAKE2b-256 a9f8b10a2131e9401d7af00d6021067f9560ce13cea9b86e1b7d807de83f7796

See more details on using hashes here.

File details

Details for the file mlguide-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mlguide-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 68.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for mlguide-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45f49e4aef0ac06b3c811ab6ae07baa1f2d070b58bd84a89b85b769d20f79d32
MD5 e60073ffdc2a607a3a2e44d9c30e85dd
BLAKE2b-256 caf3bbca842975e16f838a143a96c2c08cbc0cdc9e36ca6ea7491e02c528f7af

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