Metadata-Version: 2.5
Name: automl-studio
Version: 2.2.0
Summary: AutoML you can trust: a leak-free AutoML library (automl_v2) and a no-code local web app (AutoML Studio) with data checks, honest test results and rigorous experiments.
Project-URL: Homepage, https://github.com/MainTechAI/AutoML
Project-URL: Documentation, https://github.com/MainTechAI/AutoML#readme
Project-URL: Online interface, https://automl-lab.vercel.app
Project-URL: Issues, https://github.com/MainTechAI/AutoML/issues
Project-URL: Changelog, https://github.com/MainTechAI/AutoML/releases
Author: MainTechAI
License-Expression: GPL-3.0-only
License-File: LICENSE
Keywords: automl,classification,hyperparameter-optimization,machine-learning,no-code,optuna
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Requires-Dist: catboost>=1.2.7
Requires-Dist: imbalanced-learn>=0.13
Requires-Dist: joblib>=1.4
Requires-Dist: lightgbm>=4.5
Requires-Dist: numpy>=2.0
Requires-Dist: optuna>=5.1
Requires-Dist: pandas>=2.2
Requires-Dist: scikit-learn>=1.6
Requires-Dist: threadpoolctl>=3.5
Requires-Dist: xgboost>=2.1
Provides-Extra: desktop
Requires-Dist: anthropic>=2.14; extra == 'desktop'
Requires-Dist: fastapi>=0.115; extra == 'desktop'
Requires-Dist: fastembed>=0.9; extra == 'desktop'
Requires-Dist: google-genai>=1.0; extra == 'desktop'
Requires-Dist: httpx>=0.27; extra == 'desktop'
Requires-Dist: openai>=1.50; extra == 'desktop'
Requires-Dist: openpyxl>=3.1; extra == 'desktop'
Requires-Dist: pillow>=10; extra == 'desktop'
Requires-Dist: psutil>=5.9; extra == 'desktop'
Requires-Dist: pyarrow>=16; extra == 'desktop'
Requires-Dist: pydantic>=2.7; extra == 'desktop'
Requires-Dist: pystray>=0.19; extra == 'desktop'
Requires-Dist: python-multipart>=0.0.9; extra == 'desktop'
Requires-Dist: pywebview>=5.3; extra == 'desktop'
Requires-Dist: sqlalchemy>=2.0; extra == 'desktop'
Requires-Dist: uvicorn[standard]>=0.30; extra == 'desktop'
Provides-Extra: studio
Requires-Dist: anthropic>=2.14; extra == 'studio'
Requires-Dist: fastapi>=0.115; extra == 'studio'
Requires-Dist: fastembed>=0.9; extra == 'studio'
Requires-Dist: google-genai>=1.0; extra == 'studio'
Requires-Dist: httpx>=0.27; extra == 'studio'
Requires-Dist: openai>=1.50; extra == 'studio'
Requires-Dist: openpyxl>=3.1; extra == 'studio'
Requires-Dist: psutil>=5.9; extra == 'studio'
Requires-Dist: pyarrow>=16; extra == 'studio'
Requires-Dist: pydantic>=2.7; extra == 'studio'
Requires-Dist: python-multipart>=0.0.9; extra == 'studio'
Requires-Dist: sqlalchemy>=2.0; extra == 'studio'
Requires-Dist: uvicorn[standard]>=0.30; extra == 'studio'
Description-Content-Type: text/markdown

<p align="center"><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/logo.svg" alt="" width="88"></p>

<h1 align="center">AutoML Studio</h1>

<p align="center">
  <b>Build classification models you can trust, from a spreadsheet, without writing code.</b><br>
  A local web app and Python library: data checks that catch leakage, an AutoML search with honest test results,
  rigorous experiments, data connectors, and an optional AI assistant that works with Claude, GPT, Gemini or local models.
</p>

<p align="center">
  <a href="https://github.com/MainTechAI/AutoML/actions/workflows/tests.yml"><img alt="tests" src="https://github.com/MainTechAI/AutoML/actions/workflows/tests.yml/badge.svg"></a>
  <a href="https://github.com/MainTechAI/AutoML/actions/workflows/studio.yml"><img alt="studio" src="https://github.com/MainTechAI/AutoML/actions/workflows/studio.yml/badge.svg"></a>
  <img alt="python" src="https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13-3776ab">
  <a href="https://raw.githubusercontent.com/MainTechAI/AutoML/master/LICENSE"><img alt="license" src="https://img.shields.io/badge/license-GPL--3.0-0e6e73"></a>
</p>

<p align="center">
  <a href="#quick-start">Quick start</a> ·
  <a href="#what-you-can-do">Features</a> ·
  <a href="#screenshots">Screenshots</a> ·
  <a href="#how-it-compares">Benchmark</a> ·
  <a href="#roadmap">Roadmap</a> ·
  <a href="#project-layout">Layout</a>
</p>

<p align="center">
  <img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/hero.webp" alt="AutoML Studio results: test ROC AUC with a 95% interval, two plans compared on the same test rows, all test scores and the saved model's size and latency" width="900">
</p>

## Key results

- **Second of 14 systems** on 55 AutoML Benchmark tasks at a 5-minute budget, behind AutoGluon, and **significantly better than every other system tested** (FLAML, LightAutoML, H2O, auto-sklearn, mljar, TPOT, and TabPFN and TabICL on CPU), Holm-corrected. Second of three at 30 minutes, significantly ahead of FLAML. [Details](#how-it-compares).
- **Each improvement was measured before it became the default:** stacking, a zero-shot portfolio learned on 100 OpenML datasets kept apart from the benchmark, parallel trials and time-aware search were each benchmarked against the previous version on the same tasks, folds and seeds. A meta-learning warm start that showed no benefit was kept experimental.
- **A no-code app built around trustworthy evaluation:** leakage checks before training, a held-out test with confidence intervals, repeated cross-validation experiments with the corrected resampled t-test, and limits on model size and prediction time.
- **Runs on a laptop or a supercomputer:** a desktop app for Windows, macOS and Linux, and Slurm scripts used on CSC Roihu (384-core nodes).

## Why this project

- **Honest numbers.** Every score comes from rows the search never saw, with a 95% confidence interval. Comparisons use paired tests and say plainly when a difference is just noise.
- **Problems are caught before training.** Target leakage, ID columns, constant or mostly empty columns, class imbalance, rare classes and duplicates are found automatically and fixed in one click.
- **No code, no black box.** The whole flow runs in the browser, and every step shows what was tried and why.
- **Your data stays on your computer.** The AI assistant is optional and sees column statistics only, unless you allow sample rows.

## Quick start

**Desktop app**

Download *AutoML Studio* for Windows, macOS or Linux from the [latest release](https://github.com/MainTechAI/AutoML/releases/latest), unzip it and start it. It opens in its own window (Windows and macOS; on Linux in your browser), and everything stays on your computer. A tray icon shows the connection, the runs in progress and CPU, RAM and GPU use, and quits the app. The builds are not code-signed yet: on Windows choose *More info → Run anyway*; on macOS right-click the app and choose *Open*. See [desktop/README.md](https://github.com/MainTechAI/AutoML/blob/master/desktop/README.md).

**From PyPI**

```bash
pip install "automl-studio[studio]"     # the library and the web app
automl-studio                           # opens http://127.0.0.1:8765/ in your browser
pip install "automl-studio[desktop]"    # the same, in its own window with a tray icon: automl-studio --desktop
pip install automl-studio               # only the Python library (automl_v2)
```

**From a clone**

```bash
git clone https://github.com/MainTechAI/AutoML.git && cd AutoML
pip install -r requirements-v2.txt -r requirements-studio.txt
python -m automl_studio            # opens http://127.0.0.1:8765/; --desktop for the window (pip install pywebview pystray)
```

**Python API**

```python
from automl_v2 import AutoMLClassifier

clf = AutoMLClassifier(time_budget=300, metric="roc_auc",            # or accuracy, balanced_accuracy, f1, log_loss, ...
                       max_model_bytes=5_000_000, max_predict_ms=50)  # limits the saved model must meet
clf.fit(X_train, y_train)          # pandas DataFrame or numpy array; categoricals and missing values are handled
clf.predict_proba(X_test)
clf.leaderboard_                   # every trial with its score, size, latency and ensemble weight
clf.save("model.joblib")           # the fitted predictor only; joblib.load() it anywhere
```

**The original 2020 PyQt GUI (legacy)**

```bash
conda env create --name automl --file=requirements.yml && conda activate automl
cd auto_ml && python gui.py
```

## What you can do

The app is five steps, plus Research and Settings:

| Step | What happens |
|---|---|
| **1 Data** | A file or a connector becomes a table; you pick the column to predict, or several: each gets its own model, trained one after another, and the other columns to predict are never used as its inputs. |
| **2 Check** | Automatic data checks, each explained, with one-click fixes. |
| **3 Plan** | Presets, an AI-proposed plan, or your own settings and limits. |
| **4 Run** | A live search; every trial is plotted as it finishes. |
| **5 Results** | Test scores with intervals, the model, what it relies on, and a download. |

### 1. Bring your data

| Source | What it reads | Status |
|---|---|---|
| File on this computer | CSV, Excel, Parquet, JSON (up to 500 MB). Workbooks with several sheets: pick one, stack sheets that share columns, or import each | ✅ |
| Link to a file | the same formats at any http(s) URL | ✅ |
| Scientific datasets | 101 well-known classification datasets from [OpenML](https://www.openml.org) (OpenML-CC18, the AutoML Benchmark tasks, classics such as iris and Titanic), most used first. The 55 benchmark tasks show our published scores, and their results page compares your run with them (`benchmarks/build_studio_catalog.py` builds the list) | ✅ |
| Google Sheets | a sheet shared "Anyone with the link can view" | ✅ |
| Database | a table or one read-only `SELECT` through SQLAlchemy (PostgreSQL, MySQL, SQL Server, SQLite, …) | ✅ |
| Cloud storage | `s3://`, `gs://`, `az://` files through fsspec | ✅ |
| Private Sheets and OneDrive (OAuth), warehouses, scheduled re-imports, writing predictions back | | 🗺️ [#76](https://github.com/MainTechAI/AutoML/issues/76) |

**Connector safety:**
- Database queries are checked to be a single `SELECT`, PostgreSQL sessions are read-only, and SQLite files open read-only.
- Imports are capped at a million rows.
- Credentials are used once for the import, never stored, and stripped from the recorded source.
- New connectors are a small plugin class; the form is generated from its fields.

### 2. Catch problems before they become a model

Before any model is trained, deterministic checks look for:
- **Target leakage:** a column that predicts the outcome almost perfectly on its own, or whose *blank vs filled* pattern reveals it, like a cancellation date that only exists for customers who left.
- **Columns that teach the wrong thing:** ID-like, constant, mostly empty.
- **Free text and many-valued categories,** which get their own treatment instead of being treated as plain categories (see below).
- **Dates:** split into year, month, weekday and hour in one click.
- **Target problems:** imbalance with metric advice, rare classes, missing labels, and continuous targets, which are not supported yet.
- **Dataset problems:** duplicate rows and very small data.

Critical fixes are on by default; everything else is your call. The AI assistant can add a second opinion (below).

### Free text, with AI categories you review

Comment, description and ticket columns carry real signal, and every distinct sentence used to be its own category.
- **Text features, fitted inside each fold:** word and character patterns (TF-IDF reduced by SVD), or the meaning of each text from a **pretrained multilingual embedding model that runs on your computer** (fastembed/ONNX, no PyTorch: MiniLM, Qwen3-Embedding or static Model2Vec vectors; or an embedding model in Ollama or LM Studio).
- **AI categories in two levels:** an AI proposes groups and subgroups from a sample of texts and labels a few hundred of them.
  - You edit the scheme and correct labels in a review table that shows where a trained model disagrees.
  - A small local classifier learns from your reviewed labels and sorts every row. It is saved inside the model, so **prediction never calls an AI**.
  - The outcome you predict is never shown to the AI. Texts stay on your computer with Ollama or LM Studio, and go to a cloud provider only after you confirm it.
- **Many-valued categories** (store, product or postcode IDs) get frequency and cross-fitted target encoding instead of arbitrary codes. It was better in 13 of 14 model and dataset pairs we measured (Amazon_employee_access: logistic regression AUC 0.743 to 0.828; KDDCup09_appetency: histogram boosting 0.749 to 0.807).
- **Does it help?** Compare plans with and without text or categories in an experiment.

<p align="center"><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/text-categories.webp" alt="Review table of AI-labelled texts with the category, who labelled it, and what the trained model says" width="720"></p>

### 3. Plan the search

- **Presets** chosen from your data:
  - **Quick look** (1 min)
  - **Balanced** (5 min)
  - **Best quality** (30 min)
  - **Small and fast model** (under 2 MB and 50 ms per prediction)
- **Plain-language controls:** search time, the metric to optimise, how to treat rare outcomes (class weights, threshold tuning, over- or under-sampling, SMOTE), model size and prediction-time limits, and model families.
- **Model families:** LightGBM, XGBoost, CatBoost, scikit-learn histogram boosting, random forest, extra trees, logistic regression, SVM, k-nearest neighbours, neural network (MLP). **12 more, opt-in** (the classic models of the original auto_ml; not part of the benchmarked default): linear and quadratic discriminant analysis, Gaussian naive Bayes, decision tree, AdaBoost, bagged trees, Gaussian process, SGD linear model, linear SVM, ridge, nearest centroid, and a class-frequency baseline.

### 4. Search: the `automl_v2` core

- **Leak-free pipelines:** encoding, imputation, scaling and resampling are fitted inside each cross-validation fold.
- **Stratified, shuffled k-fold** with out-of-fold predictions. The returned model is the bag of fold models that was validated.
- **Text and high-cardinality columns:** text features (TF-IDF + SVD, or local sentence embeddings) and frequency + target encoding, all inside the folds; trusted feature steps such as reviewed AI categories travel inside the saved model.
- **Zero-shot portfolio, then Optuna TPE** over conditional search spaces. From a 15-minute budget up, the portfolio is 25 configurations learned on 100 OpenML datasets kept apart from the benchmark; below that, each family's library defaults. Warm-start configurations are accepted (`warm_start=`).
- **Parallel trials** when single trials are cheap (TPE with a constant liar), one trial with all cores on big data.
- **Level-2 stacking:** logistic regression on the best models' logits and LightGBM on the columns plus logits, cross-fitted on the same folds and offered to ensemble selection as ordinary candidates.
- **Real constraints:** model size and single-row latency are feasibility constraints, checked again on the object that is saved.
- **Greedy ensemble selection** (Caruana 2004) over out-of-fold predictions, within the size and latency limits.
- **Threshold tuning** for binary label metrics.
- **Time-aware:** configurations that can't finish in time are skipped, and trials stop at the deadline once a model exists, so a fit always returns one.
- **Robustness:** memory budgeting (oversized trials are stopped, kept models are pruned and freed memory goes back to the OS) and BLAS/OpenMP thread caps, so it is safe on 384-core HPC nodes.

### 5. Results you can act on

- **Test score from rows held out before the search**, with a 95% bootstrap interval, plus accuracy, balanced accuracy, ROC AUC, log loss, F1 and MCC.
- **The model you get:** which models it combines, the saved file size, and the time for one prediction, each against your limits.
- **Labels that make sense on imbalanced data:** for two-outcome problems the decision threshold is chosen to maximise F1 on the search's validation predictions (like H2O), so a rare outcome such as churn is actually predicted. It is saved with the model.
- **What the model relies on:** permutation importance, a confusion matrix, and a leaderboard of the best trials.
- **Use it:** download the model and a Python script that applies the same column fixes and predicts new rows.

### 6. Compare plans, or run a real experiment

- **Quick comparison:** up to 4 plans trained on the same rows and scored on the same test rows. Paired bootstrap, Holm correction, and a plain verdict ("within what chance alone produces").
- **Experiment mode:** every plan is searched and tested on *R × K* repeated stratified cross-validation splits. Plans are compared with the **corrected resampled t-test** (Nadeau & Bengio 2003), because CV splits share training rows and the plain t-test is overconfident. A plan that fails on a split is shown, not hidden. One click trains the winner on all the data.

### 7. Optional AI assistant

The assistant works with **Anthropic Claude**, **OpenAI**, **Google Gemini**, and **Ollama** or **LM Studio** (local and free), behind one structured-output layer with schema validation and a corrective retry.

| Feature | What it does | Guard-rails |
|---|---|---|
| **Review my problem** | Explains risks in plain language: leakage, label timing, sampling, metric choice. | Fixes may only use allowed actions on existing columns. |
| **Propose a plan** | Model families, budget, metric, imbalance handling, limits and starting hyperparameters for *this* data. | Validated against the model registry; hyperparameters are checked by building the estimator; nothing is executed as code. Run it against the preset in an experiment to see if it really helps. |
| **Text categories** | Proposes two-level categories for a free-text column and labels a sample of texts; you review both, and a local classifier learns from your labels. | The target is never shown; texts leave your computer only for a cloud provider you confirm; no AI at prediction time. |
| **Research** | Searches OpenAlex and arXiv, summarises the evidence with citations, and writes a pre-registered experiment protocol (hypotheses, baselines, validation, test, minimum effect). | Citations to papers that were not retrieved are removed; "Set up this experiment" carries the protocol into the Plan step. |

**Privacy:**
- Only column names, types and statistics are sent; sample rows are opt-in.
- Every prompt and answer is logged locally.
- API keys live in the OS keychain (or a user-only file) and never reach the browser in full.
- Claude needs an API key, because Anthropic doesn't allow third-party apps to use a Claude.ai subscription.

### 8. Built to be safe and fast to use

- **Local by default:** the server listens on 127.0.0.1 only, rejects foreign Host headers (DNS rebinding), and every API call needs a per-session token.
- **Responsive:** runs execute in their own process with live progress over server-sent events, so the UI never freezes. A search can be paused (it is frozen, and its time budget waits) and resumed, and a stopped search can be started again.
- **Liquid Glass design:** translucent, blurred panels over a loss landscape where each trial lands as a point of light.
- **Accessible:** light and dark themes, a solid-panel mode (`prefers-reduced-transparency`), reduced motion respected, and keyboard focus visible. Works on phones.
- **Shareable state:** links keep their place (the URL restores the step, dataset, target and run).

### 9. A reproducible benchmark

[`benchmarks/`](https://github.com/MainTechAI/AutoML/blob/master/benchmarks/README.md) runs 14 AutoML systems on the AutoML Benchmark tasks:
- one JSON result per run: test metrics, real fit time, saved-model size and latency;
- Slurm scripts for HPC clusters (tested on CSC Roihu);
- one container spec per framework;
- AMLB-style aggregation with ranks, intervals and Wilcoxon tests.

## Screenshots

<table>
  <tr>
    <td width="50%"><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/data.webp" alt="Data step with a table preview and the column to predict"><br><sub><b>Data.</b> Drop a file and preview it.</sub></td>
    <td width="50%"><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/connectors.webp" alt="Database connector form"><br><sub><b>Connectors.</b> Links, Google Sheets, databases and cloud storage.</sub></td>
  </tr>
  <tr>
    <td><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/check.webp" alt="Data checks: leakage, ID column, constant column, dates"><br><sub><b>Check.</b> The leaking cancellation date and the ID column are caught before training.</sub></td>
    <td><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/plan.webp" alt="Plan step with presets, settings and the experiment option"><br><sub><b>Plan.</b> Presets, limits, model families, and quick or rigorous comparison.</sub></td>
  </tr>
  <tr>
    <td><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/run.webp" alt="Live search with the score of every trial"><br><sub><b>Run.</b> Every trial as it finishes, coloured and shaped by model family, with the best so far.</sub></td>
    <td><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/experiment.webp" alt="Experiment result with means, intervals and per-split scores"><br><sub><b>Experiment.</b> Repeated cross-validation with the corrected t-test.</sub></td>
  </tr>
  <tr>
    <td><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/dark.webp" alt="Results in dark mode"><br><sub><b>Dark mode.</b></sub></td>
    <td><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/settings.webp" alt="Settings with four AI providers and privacy options"><br><sub><b>Settings.</b> Four AI providers, privacy and appearance.</sub></td>
  </tr>
  <tr>
    <td><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/research.webp" alt="Research step"><br><sub><b>Research.</b> Literature search to an experiment protocol.</sub></td>
    <td align="center"><img src="https://raw.githubusercontent.com/MainTechAI/AutoML/master/docs/images/mobile.webp" alt="Data checks on a phone" width="260"><br><sub><b>On a phone.</b></sub></td>
  </tr>
</table>

## How it compares

55 classification tasks from the AutoML Benchmark (OpenML suite 271), 8 cores and 16 GB per run, on the CSC Roihu supercomputer. Each system is compared with automl_v2 task by task (Wilcoxon signed-rank test, Holm-corrected). Full tables, protocol and raw results: [benchmarks/RESULTS.md](https://github.com/MainTechAI/AutoML/blob/master/benchmarks/RESULTS.md).

**5-minute budget, 14 systems**

| System | Mean rank (lower is better) | Best of all systems on | Head-to-head with automl_v2 (tasks won / lost) |
|---|---|---|---|
| AutoGluon 1.6 (best quality) | **2.65** | 14 tasks | AutoGluon wins, 40 / 15 (significant) |
| **automl_v2 (this project)** | **4.08** | 5 tasks | *reference* |
| FLAML 2.8 | 6.00 | 0 | automl_v2 wins, 41 / 14 (significant) |
| LightAutoML 0.4 | 6.16 | 3 | automl_v2 wins, 39 / 16 (significant) |
| H2O AutoML 3.46 | 6.47 | 2 | automl_v2 wins, 46 / 9 (significant) |
| auto-sklearn 0.15 | 6.48 | 4 | automl_v2 wins, 39 / 16 (significant) |
| mljar-supervised 1.3 | 6.65 | 0 | automl_v2 wins, 41 / 14 (significant) |
| CatBoost (defaults, no tuning) | 6.98 | 2 | automl_v2 wins, 44 / 11 (significant) |
| TabICL (foundation model, CPU) | 7.52 | **18** | automl_v2 wins, 30 / 25 (significant) |
| TabPFN v2 (foundation model, CPU) | 10.06 | 5 | automl_v2 wins, 40 / 15 (significant) |
| LightGBM and random forest defaults, TPOT 1.1 | 9.55–10.77 | 0–1 | automl_v2 wins, 52–53 / 2–3 (significant) |
| original `auto_ml` (2020) | 11.40 | 0 | automl_v2 wins, 53 / 2 (significant) |

**30-minute budget:** AutoGluon 1.40, **automl_v2 2.08**, FLAML 2.52 (mean rank among three). automl_v2 beats FLAML on 39 of 55 tasks and loses to AutoGluon on 42; both differences are significant.

**How to read it:**
- **AutoGluon is clearly ahead,** with larger and slower models: at 5 minutes, 364 MB and 0.5 s per row, against 173 MB and 0.35 s for automl_v2.
- **automl_v2 is second, and significantly better than every other system,** including the other open-source AutoML frameworks.
- **The foundation models are the surprise.** On CPU, TabICL timed out on about half its runs, yet it had the single best score on 18 tasks, more than any other system. GPU runs are next ([#80](https://github.com/MainTechAI/AutoML/issues/80)).
- **What automl_v2 adds is what the app is built around:** limits on the deployed model, leak checks and honest evaluation.

## Architecture

```mermaid
flowchart LR
  subgraph Browser
    UI["React UI<br/>no code"]
  end
  subgraph Local server
    API["FastAPI<br/>localhost,<br/>session token"]
    PROF["Data checks<br/>leakage, IDs,<br/>imbalance"]
    CONN["Connectors<br/>files, Sheets,<br/>SQL, cloud"]
    AI["AI assistant<br/>Claude, GPT,<br/>Gemini, local"]
    LIT["OpenAlex<br/>+ arXiv"]
    RUN["Run process<br/>held-out test<br/>or repeated CV"]
  end
  CORE["automl_v2<br/>leak-free CV,<br/>portfolio + TPE,<br/>ensembles"]
  UI <-->|HTTP| API
  API --> PROF & CONN & AI & RUN
  AI --> LIT
  RUN --> CORE
  RUN -.->|progress events, SSE| API
```

## Roadmap

| Area | Status | Tracking |
|---|---|---|
| Web app, no-code flow, Liquid Glass design, desktop app (Windows, macOS, Linux) | ✅ shipped; 🗺️ code signing, auto-update | [#73](https://github.com/MainTechAI/AutoML/issues/73) |
| AI assistant (review, plan) across four vendors | ✅ shipped | [#74](https://github.com/MainTechAI/AutoML/issues/74) |
| Research agent and rigorous experiments | ✅ literature search, protocols, repeated-CV experiments; 🗺️ automatic plans per hypothesis | [#75](https://github.com/MainTechAI/AutoML/issues/75) |
| Data connectors | ✅ files, links, Google Sheets, SQL, cloud storage; 🗺️ OAuth, warehouses, scheduled re-imports, write-back | [#76](https://github.com/MainTechAI/AutoML/issues/76) |
| Stacking, parallel trials, time-aware search | ✅ shipped, benchmarked on CSC | [#79](https://github.com/MainTechAI/AutoML/issues/79) |
| Faster prediction (refit on all data, distillation, ONNX), hard trial deadlines | 🗺️ planned | [#79](https://github.com/MainTechAI/AutoML/issues/79) |
| Spark, Ray, Dask, Slurm, Kubernetes, warehouses | 🗺️ planned | [#77](https://github.com/MainTechAI/AutoML/issues/77) |
| More HPO samplers through Optuna/OptunaHub, and a benchmark of HPO algorithms (TPE, CMA-ES, GP-BO, SMAC, HEBO, BOHB/DEHB) | 🗺️ planned | [#78](https://github.com/MainTechAI/AutoML/issues/78), [#104](https://github.com/MainTechAI/AutoML/issues/104) |
| AutoGluon as an optional engine in Studio | 🗺️ planned | [#103](https://github.com/MainTechAI/AutoML/issues/103) |
| Meta-learning: literature review and a state-of-the-art approach | 🚧 in progress | |
| Benchmark: foundation models on GPU (TabPFN, TabICL), 1-hour budgets, regression tasks | 🚧 14 systems done; GPU runs next | [#80](https://github.com/MainTechAI/AutoML/issues/80) |
| Portfolio learned across datasets (replacing meta-learning) | ✅ shipped, used from 15-minute budgets | [benchmarks/RESULTS.md](https://github.com/MainTechAI/AutoML/blob/master/benchmarks/RESULTS.md) |
| pip packaging: `pyproject.toml`, optional extras, `automl-studio` command | 🗺️ planned next | [#94](https://github.com/MainTechAI/AutoML/issues/94) |
| Time-aware and grouped validation splits (dates, repeated customer IDs) | 🗺️ planned | [#95](https://github.com/MainTechAI/AutoML/issues/95) |
| Text columns, AI categories with review, high-cardinality encodings | ✅ shipped; 🗺️ native categoricals in GBDTs | [#96](https://github.com/MainTechAI/AutoML/issues/96) |
| Misuse guardrails for local models, EU AI Act support | 🗺️ planned | [#98](https://github.com/MainTechAI/AutoML/issues/98) |
| Regression, time series, explainability and model cards, MLflow, deployment | 🗺️ planned | [#81](https://github.com/MainTechAI/AutoML/issues/81) |

✅ available · 🚧 in progress · 🗺️ planned. Ideas and pull requests are welcome; open an issue first for larger changes.

## Project layout

| Path | What it is |
|---|---|
| [`automl_studio/`](https://github.com/MainTechAI/AutoML/blob/master/automl_studio/README.md) | The web app: FastAPI backend (`server.py`, `runner.py`, `profiling.py`, `connectors.py`, `assistant.py`, `llm.py`) and the React UI (`web/`, built into `static/`). |
| [`automl_v2/`](https://github.com/MainTechAI/AutoML/blob/master/automl_v2/README.md) | The search core and Python API (`AutoMLClassifier`). |
| [`benchmarks/`](https://github.com/MainTechAI/AutoML/blob/master/benchmarks/README.md) | Benchmark runner, Slurm scripts, container specs, aggregation and [results](https://github.com/MainTechAI/AutoML/blob/master/benchmarks/RESULTS.md). |
| `auto_ml/` | The original 2020 engine and PyQt desktop GUI. |
| `meta_learning/` | OpenML meta-features and evaluation parsers for the legacy warm start (experimental). |
| `tests/` | `pytest` suites for everything above; CI runs them on Python 3.11–3.13. |

## Development

```bash
pip install -r requirements-ci.txt -r requirements-studio.txt
python -m pytest -q tests                      # all suites

cd automl_studio/web && npm install
npm run dev                                    # Vite on :5173, proxies /api to `python -m automl_studio`
npm run build                                  # type-checks and writes automl_studio/static (committed)
```

Dependabot keeps dependencies current, and a weekly CI run catches breaking upstream releases.

## History

- **2019–2020:** started as a bachelor's thesis, a PyQt desktop AutoML app with hyperopt TPE over scikit-learn models, model-size and prediction-time limits, and top-N model export ([thesis](http://omega.sp.susu.ru/publications/bachelorthesis/2019_403_shchukinma.pdf), [slides](http://omega.sp.susu.ru/publications/bachelorthesis/2019_403_shchukinma_slides.pdf), [presentation](https://github.com/MainTechAI/AutoML/blob/master/presentation_RU.pdf), in Russian).
- **LUT special assignment:** added a Dataset2Vec-style meta-learning warm start over 512 OpenML datasets, bagging and voting ensembles, and imbalanced-data resampling. The meta-learning is now marked **experimental**: on 52 held-out datasets it showed no measurable benefit over defaults ([details](https://github.com/MainTechAI/AutoML/blob/master/benchmarks/RESULTS.md)).
- **2026:**
  - correctness fixes to the original engine;
  - the `automl_v2` core;
  - AutoML Studio;
  - the benchmark.

<details>
<summary>The original desktop GUI</summary>

![GUI](https://user-images.githubusercontent.com/52529117/196767944-3cf55608-d093-4b75-bccd-8d2ed4d20398.png)
![GUI settings](https://user-images.githubusercontent.com/52529117/196767946-f5ef7d41-5e00-4878-8639-af99a369ac6e.png)
![GUI results](https://user-images.githubusercontent.com/52529117/196767947-fa5e26ec-e7dc-4377-b429-09d52c7cf895.png)

Upload a dataset and a column-description file, choose algorithms, a metric, and time and size limits, then click Start. The best N models are saved to the results folder. Meta-learning, ensembling and resampling are available through `ModelSelection` keyword arguments ([examples](https://github.com/MainTechAI/AutoML/blob/master/auto_ml/examples)).
</details>

## License

[GPL-3.0](https://github.com/MainTechAI/AutoML/blob/master/LICENSE)
