Skip to main content

AutoML library for the full ML lifecycle — train, evaluate, visualise, and save

Project description

PyFlowML 🚀

A scalable, intelligent Python ML library for the full machine learning lifecycle.

PyFlowML handles everything from raw, potentially large data to a trained, evaluated, and saved model — automatically.


Features

Feature Description
🧠 AutoML Trains multiple models in parallel, picks the best automatically
📊 Data Profiler Detects problem type, missing data, skewness, and outliers
⚙️ Smart Pipeline Cached preprocessing: no redundant recomputation
📦 Memory Optimizer Downcasts dtypes — saves 40–60% RAM
🚀 Parallel Training All models train simultaneously via joblib
⏱️ Time Budget AutoClassifier(time_limit=60) stops when budget exceeded
📈 Visualization Dark-themed ROC, confusion matrix, learning curves
💾 Versioned Saves Models saved with metadata (date, metrics, features)
📝 NLP Utilities TF-IDF, Bag-of-Words, stopword removal, lemmatization
📡 Monitoring Per-step time and memory tracking

Installation

pip install -e .

Or install from requirements:

pip install -r requirements.txt

Quickstart

One-line AutoML Engine

import pandas as pd
from pyflowml.core.engine import PyFlowEngine

df = pd.read_csv("titanic.csv")
engine = PyFlowEngine(df, target="Survived", time_limit=120)
engine.run()

Manual Step-by-Step

from pyflowml.data import DataLoader, DataCleaner, DataSplitter, MemoryOptimizer
from pyflowml.preprocessing import SmartPipeline
from pyflowml.models import AutoClassifier
from pyflowml.evaluation import Reporter
from pyflowml.visualization import ModelViz
from pyflowml.utils import ModelSaver

# Load & optimize
df = DataLoader.from_csv("data.csv")
df = MemoryOptimizer.reduce(df)

# Clean
df = DataCleaner(df).handle_nulls().remove_outliers().remove_duplicates().result()

# Split
X_train, X_test, y_train, y_test = DataSplitter(df, target="label").split()

# Preprocess
pipe = SmartPipeline()
X_train = pipe.fit_transform(X_train, y_train)
X_test  = pipe.transform(X_test)

# Train best model
clf = AutoClassifier(metric="f1", time_limit=60)
clf.fit(X_train, y_train)
clf.leaderboard()

# Evaluate
Reporter.classification(clf, X_test, y_test)

# Visualize
ModelViz.confusion_matrix(clf, X_test, y_test)
ModelViz.roc_curve(clf, X_test, y_test)

# Save
ModelSaver.save(clf, "my_model", metadata={"f1": clf.best_score_})

Modules

pyflowml/
├── core/          # Engine, Profiler, Optimizer (brain of the system)
├── data/          # DataLoader, DataCleaner, DataSplitter, MemoryOptimizer
├── preprocessing/ # Scaler, FeatureSelector, SmartPipeline
├── models/        # AutoClassifier, AutoRegressor, AutoClusterer
├── evaluation/    # Reporter, CrossValidator
├── tuning/        # HyperTuner
├── visualization/ # Plotter, ModelViz
├── monitoring/    # StepTracker, Logger
├── utils/         # ModelSaver
└── nlp/           # TextCleaner, Vectorizer

Running Tests

pytest tests/ -v

License

MIT

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

pyflowml-1.0.4.tar.gz (44.4 kB view details)

Uploaded Source

Built Distribution

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

pyflowml-1.0.4-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file pyflowml-1.0.4.tar.gz.

File metadata

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

File hashes

Hashes for pyflowml-1.0.4.tar.gz
Algorithm Hash digest
SHA256 fa06b53490145930fe93b8cb62911de4ca3a72bec365d95e2b68370fbd0093c9
MD5 f110ff7138974bf24cecc67399a4dadc
BLAKE2b-256 ada1aa145c197a5b2dce927b43b5299e567e001b68e2bd42ee2c5363381922fd

See more details on using hashes here.

File details

Details for the file pyflowml-1.0.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pyflowml-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d4689768b00997e650f89148cdb9cfd6896ccf0059c6c2719f736014909f9dc0
MD5 824eaea40bd9473a9ed921eb8d221047
BLAKE2b-256 97a28a446e624b9f64d0e15db6e87631019cdfabb0b8ed41b3eecbd9ca65372c

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