Open-data benchmark · no company/client data
APEX-ML - Open Benchmark
Problem
General-purpose AutoML tools (Auto-sklearn, TPOT) are slow and not GPU-native, and building strong models for imbalanced tabular classification (e.g. fraud or defect detection) takes substantial manual ML effort. The goal of this personal R&D project was a GPU-native AutoML platform that exhaustively explores a large algorithm space efficiently and is purpose-built for imbalanced classification. It shares its name and approach with an AutoML platform I built at JS SYSTEM, but no company data, results, or client work are reproduced here — it is a solo-built engineering project validated on open/public datasets, not deployed at any client.
What I built
- Built end-to-end as the sole developer: the complete 3-phase pipeline (Rapid Screening -> Focused Optimization -> Self-Evolution), the FastAPI backend (port 8010), and the FastAPI-served HTML/vanilla-JS/Plotly.js dashboard for real-time pipeline monitoring (no React/Vue/Angular framework).
- Implemented and integrated ~85 ML algorithms (81 classification-capable) across roughly 15 categories — Tree-Based, Traditional ML, Neural Networks, Deep Tabular, Foundation Models, Ensemble, GNN, Meta-Learning, Quantum-Inspired, Self-Supervised, Time Series, Clustering, and SOTA 2024-2025 — with custom meta-learning warm-start configurations.
- Engineered the GPU layer and validation: distributed GPU scheduling via Ray (backend/distributed/, @ray.remote num_gpus tasks, RayClusterManager, checkpoint-based fault tolerance) and Optuna TPE Bayesian tuning, validated end-to-end on open/public datasets (Credit Card Fraud, diabetes, titanic, wine-quality, breast-cancer, iris) with a committed 23-test core suite (tests/test_core.py).
Approach
Design decisions
-
3-Phase progressive pipeline over single-phase AutoML
Context: general-purpose AutoML tools (Auto-sklearn, TPOT) are slow because they tune the full candidate set. Options weighed: single-phase exhaustive search vs. multi-phase progressive refinement. Decision: a 3-phase pipeline — Phase 1 Rapid Screening evaluates candidates on a 10% data sample to eliminate weak algorithms, Phase 2 Focused Optimization concentrates Optuna TPE Bayesian tuning on the surviving top candidates, Phase 3 Self-Evolution evolves and stacks the best models via a genetic algorithm (crossover/mutation). Per the repo's user guide the phases run Phase 1 ~5-15 min, Phase 2 ~15-45 min, Phase 3 ~10-30 min, with Fast mode (15 algorithms) ~5-15 min, Normal (30) ~15-45 min, and Production (all ~85) 1-6 hours; the public Credit Card Fraud benchmark (284,807 samples) ran ~6 hours end-to-end.
-
Ray cluster over Dask / Apache Spark for distributed GPU scheduling
Context: needed distributed GPU scheduling to evaluate the algorithm set in parallel. Options weighed: Ray, Dask, Apache Spark. Decision: Ray, because it provides native GPU task scheduling and integrates seamlessly with Optuna for distributed hyperparameter tuning, whereas Spark lacks GPU-native support. The Ray-based distributed layer (backend/distributed/) implements checkpoint-based fault tolerance and multi-node cluster execution (distributed_algorithm_trainer.py with @ray.remote num_gpus=0.25, RayClusterManager, and node-failure tracking in distributed_monitoring.py).
-
Optuna with Tree-structured Parzen Estimator (TPE) for Phase 2 hyperparameter optimization
Phase 2 (Focused Optimization) employs Optuna-based Bayesian optimization with the TPE sampler (backend/algorithms/gpu_algorithm_optimizer.py imports optuna.samplers.TPESampler) to tune hyperparameters only on the top-performing algorithms surviving Phase 1, concentrating compute where it yields the most gain rather than tuning all candidates. The dashboard visualizes the optimization landscape, acquisition function, and convergence trajectory.
-
GPU-native full-CUDA pipeline with a 70-80% utilization target on consumer GPUs
The pipeline runs on CUDA with dynamic batch scheduling and memory-pressure management. The optimizer code sets an explicit GPU-utilization target (backend/algorithms/gpu_algorithm_optimizer.py:95, target_gpu_utilization = 70.0, aiming for 70-80%) so algorithm screening saturates the GPU rather than leaving it idle; the documentation cites a 60-80% utilization range as the design target on an RTX 4090.
-
Phase 3 Self-Evolution: genetic-algorithm ensemble construction
Rather than shipping the single best model, Phase 3 runs a SelfEvolutionEngine that evolves the best models through crossover and mutation and stacks them into an optimized ensemble with dynamic weighting (backend/pipline/main_pipeline.py: 'Phase 3: Self-Evolution (genetic algorithm)'; advanced ensemble methods include Caruana, Stacking, and Blending), reporting accuracy, F1, precision, and recall per the configured metrics.
-
Domain specialization for imbalanced tabular classification
Unlike general-purpose AutoML, APEX-ML is purpose-built for imbalanced classification. The public Credit Card Fraud benchmark has only 0.17% positives, which is why the pipeline is configured to emphasize F1, precision, and recall rather than treating raw accuracy as a sufficient quality measure.
In operation





Engineering foothold
| Claim | Evidence |
|---|---|
| ~85 registered algorithms (canonical '85 Unique') across roughly 15 categories; 81 of them are classification-capable. | The repo's project-overview doc, 'Algorithm System (85 Unique)' with 'Classification capable: 81', 'Regression capable: 46', 'Categories (15)'; docs/configuration/algorithms.md, docs/USER_GUIDE.md, docs/END_TO_END_TEST_PLAN.md all state 85 algorithms. backend/models/algorithm_factory.py registers the algorithm set via self.algorithms[...] entries (with conditionally-registered XGBoost/LightGBM/CatBoost). NOTE: README badge/body say 81 (the classification-capable subset) and docs/ARCHITECTURE.md says 84 — an internal documentation inconsistency. |
| Completed a full 3-phase run on the public Credit Card Fraud benchmark (284,807 samples, 0.17% positives). | docs/README.md:119-147 documents the Credit Card Fraud run (284,807 samples, 0.17% fraud, ~6 hours, 8.1 GB); docs/USER_GUIDE.md:1215-1216 records the Phase 1 run. Because raw accuracy is weak evidence at this class ratio and the source CSV is not committed, the portfolio treats this as an integration/throughput benchmark rather than a comparative model-quality result. |
| Validated on open/public datasets only. | Committed datasets are all public: data/diabetes.csv, data/titanic.csv, data/winequality-red.csv, data/winequality-white.csv, data/wine_quality_combined.csv, test_data/breast_cancer.csv, test_data/iris.csv, test_data/sklearn_wine.csv; the flagship Credit Card Fraud benchmark is the well-known public Kaggle dataset. No proprietary or client data is present. |
| Per-phase / per-mode runtimes from the repo's user guide. | docs/USER_GUIDE.md:71-95: Phase 1 Rapid Screening 5-15 min, Phase 2 Focused Optimization 15-45 min, Phase 3 Self-Evolution 10-30 min; modes Fast (15 algs) 5-15 min, Normal (30) 15-45 min, Production (~85) 1-6 hours. The flagship Credit Card Fraud run (284,807 samples) took ~6 hours end-to-end (docs/README.md:147). |
| Optuna Bayesian optimization uses the Tree-structured Parzen Estimator (TPE) sampler. | Confirmed: backend/algorithms/gpu_algorithm_optimizer.py:263 'from optuna.samplers import TPESampler' and :268 'sampler=TPESampler(...)'; requirements.txt 'optuna>=3.5.0'. |
| 70-80% GPU-utilization target set in the optimizer code. | Confirmed: backend/algorithms/gpu_algorithm_optimizer.py:95 'target_gpu_utilization: float = 70.0 # Aim for 70-80% GPU utilization'; the 60-80% range is documented as the design target in docs/README.md and backend/algorithms/GPU_INTEGRATION_SUMMARY.md. Stated as a target; no profiler/nvidia-smi capture is committed. |
| Ray cluster supports fault tolerance and multi-node scheduling. | Confirmed in code: backend/distributed/ (distributed_algorithm_trainer.py @ray.remote num_gpus=0.25 with checkpointing for fault tolerance; RayClusterManager; distributed_monitoring.py tracks cluster_nodes / node_failure_threshold); requirements.txt 'ray[default]>=2.10.0'. |
| Dashboard is a FastAPI-served HTML/JS frontend (not a JS SPA framework). | frontend/templates/ (dashboard.html, all_models.html, demo.html, prescriptive.html, report_template.html) + frontend/static/js/ (dashboard.js, realtime-progress.js, demo-visualizations.js) using Plotly.js (Plotly.newPlot throughout demo-visualizations.js); served via FastAPI StaticFiles/HTMLResponse (backend/api/api_server.py). No React/Vue/Angular/Vite present. |
| Committed test suite covers the core platform (23 tests). | tests/test_core.py contains 23 test functions (type/logging/exception imports, config, AlgorithmFactory instantiation and registry, pipeline import and phase definitions, task-compatibility validator, memory-pressure manager, GPU accelerator/config, and a mock pipeline init); plus test_data/test_all_algorithms.py for algorithm-level checks. (The README's '69 passed' references test_api.py/test_distributed.py/test_e2e_pipeline.py, which are not present in the committed tests/ directory, so 23 is the repo-true committed count.) |
Tech stack
- Languages & Core
- Python 3.10+
- ML / DL Frameworks
- PyTorch (>=2.0), scikit-learn (>=1.5), XGBoost, LightGBM, CatBoost, TabNet, NODE, SAINT, FT-Transformer, TabPFN / foundation models, Graph Neural Networks (GCN/GAT/GraphSAGE), Quantum-Inspired (QuantumSVM, VQC)
- Hyperparameter Optimization
- Optuna (Tree-structured Parzen Estimator / TPE)
- Distributed Computing & GPU
- Ray[default] (distributed GPU scheduling, checkpoint-based fault tolerance, multi-node), CUDA full pipeline, RTX 4090 (reference GPU)
- Backend / API
- FastAPI (port 8010), uvicorn, structlog
- Frontend
- FastAPI-served HTML templates (Jinja-style) + vanilla JavaScript, Plotly.js (interactive visualizations)
- Algorithm System (~85 algorithms, ~15 categories)
- Tree-Based (XGBoost, LightGBM, CatBoost, RandomForest, ExtraTrees, GradientBoosting, HistGradientBoosting, AdaBoost, DecisionTree), Traditional / Classical ML (SVM, KNN, Logistic/Linear Regression, Ridge/Lasso/ElasticNet, Naive Bayes, LDA/QDA), Neural Networks (StandardMLP, EnhancedMLP, AutoEncoder, WideAndDeep), Deep Tabular (TabNet, NODE, SAINT, FT-Transformer, VIME), Foundation Models (TabPFN, TabLLM, CTBERT), Ensemble (Voting, Bagging, Stacking, Blending, DynamicEnsemble), Graph Neural Networks (GCN, GAT, GraphSAGE, GraphSAINT), Meta-Learning (MAML/MAML++, Prototypical/Matching/Relation Networks, Reptile), Quantum-Inspired, Self-Supervised, Rule-Based, Time Series, Clustering, SOTA 2024-2025 (ReMasker, MambaTab, TabKANet)