# ssaillesh/automl-researcher architecture

> Architecture diagram of the GitHub repository ssaillesh/automl-researcher, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ssaillesh/automl-researcher
- Repository: https://github.com/ssaillesh/automl-researcher

## Overview

AutoML Researcher turns tabular data and a target column into ranked model results through an iterative, orchestrator-led workflow; users can start runs from the CLI or browser UI. The loop profiles data, selects and tunes candidates, evaluates them, tests ensembles, and makes convergence decisions, while shared state and historical knowledge inform later iterations. The UI runs jobs in background threads. The README documents major capabilities not fully visible in the excerpts; links for those use documented relationships, and unsampled implementation details are not inferred.

Main entry points: [`orchestrator.py`](https://github.com/ssaillesh/automl-researcher/blob/main/orchestrator.py) (Run orchestrator), [`agents/train_agent.py`](https://github.com/ssaillesh/automl-researcher/blob/main/agents/train_agent.py) (Training dispatch), [`agents/ensemble_agent.py`](https://github.com/ssaillesh/automl-researcher/blob/main/agents/ensemble_agent.py) (Ensemble testing), [`agents/optimizer_agent.py`](https://github.com/ssaillesh/automl-researcher/blob/main/agents/optimizer_agent.py) (Optimizer decisions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Run interfaces"]
  node_cli["CLI entry<br/>[main.py]"]
  node_web["Browser UI<br/>[webapp.py]"]
  node_jobs["Background jobs<br/>[job_manager.py]"]
end

subgraph group_workflow["AutoML workflow"]
  node_orchestrator["Run orchestrator<br/>[orchestrator.py]"]
  node_loader["Dataset loading<br/>[dataset_loader.py]"]
  node_data["Data profiling<br/>[data_agent.py]"]
  node_profiling["Profile utilities<br/>[profiling.py]"]
  node_model["Model selection<br/>[model_agent.py]"]
  node_trainer["Training dispatch<br/>[train_agent.py]"]
  node_parallel["Parallel runner<br/>[parallel_runner.py]"]
  node_training["Model training<br/>[training.py]"]
  node_evaluation["Run evaluation<br/>[eval_agent.py]"]
  node_metrics["Metric calculations<br/>[metrics.py]"]
  node_ensemble["Ensemble testing<br/>[ensemble_agent.py]"]
  node_optimizer["Optimizer decisions<br/>[optimizer_agent.py]"]
  node_convergence["Convergence policy<br/>[convergence.py]"]
end

subgraph group_runtime["Experiment runtime"]
  node_knowledge[("Historical knowledge<br/>[knowledge_base.py]")]
  node_state["Experiment state"]
  node_store[("Run tracking")]
  node_config["Runtime settings<br/>[config.py]"]
end

subgraph group_integrations["External services"]
  node_llm["Reasoning client<br/>[llm_client.py]"]
  node_mlflow[("MLflow tracking")]
  node_nemotron["Nemotron API"]
end

node_user(("Researcher"))
node_results["Ranked results"]

node_user -->|"starts run"| node_cli
node_user -->|"submits data"| node_web
node_cli -->|"runs workflow"| node_orchestrator
node_web -->|"submits job"| node_jobs
node_jobs -->|"runs job"| node_orchestrator
node_orchestrator -->|"loads dataset"| node_loader
node_orchestrator -->|"profiles data"| node_data
node_data -->|"uses utilities"| node_profiling
node_orchestrator -->|"requests candidates"| node_model
node_model -->|"suggests models"| node_knowledge
node_orchestrator -->|"dispatches training"| node_trainer
node_trainer -->|"dispatches jobs"| node_parallel
node_parallel -->|"runs training"| node_training
node_trainer -->|"logs runs"| node_store
node_store -->|"tracks experiments"| node_mlflow
node_orchestrator -->|"evaluates runs"| node_evaluation
node_evaluation -->|"computes metrics"| node_metrics
node_orchestrator -->|"tests ensembles"| node_ensemble
node_ensemble -->|"scores ensembles"| node_metrics
node_orchestrator -->|"requests strategy"| node_optimizer
node_optimizer -->|"requests reasoning"| node_llm
node_ensemble -->|"requests reasoning"| node_llm
node_llm -.->|"calls when configured"| node_nemotron
node_orchestrator -->|"checks stopping"| node_convergence
node_orchestrator -->|"updates state"| node_state
node_optimizer -->|"reads history"| node_state
node_orchestrator -->|"records run"| node_knowledge
node_config -->|"configures run"| node_orchestrator
node_orchestrator -->|"returns results"| node_results

click node_cli "https://github.com/ssaillesh/automl-researcher/blob/main/main.py"
click node_web "https://github.com/ssaillesh/automl-researcher/blob/main/webapp.py"
click node_jobs "https://github.com/ssaillesh/automl-researcher/blob/main/core/job_manager.py"
click node_orchestrator "https://github.com/ssaillesh/automl-researcher/blob/main/orchestrator.py"
click node_loader "https://github.com/ssaillesh/automl-researcher/blob/main/tools/dataset_loader.py"
click node_data "https://github.com/ssaillesh/automl-researcher/blob/main/agents/data_agent.py"
click node_profiling "https://github.com/ssaillesh/automl-researcher/blob/main/tools/profiling.py"
click node_model "https://github.com/ssaillesh/automl-researcher/blob/main/agents/model_agent.py"
click node_knowledge "https://github.com/ssaillesh/automl-researcher/blob/main/core/knowledge_base.py"
click node_trainer "https://github.com/ssaillesh/automl-researcher/blob/main/agents/train_agent.py"
click node_parallel "https://github.com/ssaillesh/automl-researcher/blob/main/tools/parallel_runner.py"
click node_training "https://github.com/ssaillesh/automl-researcher/blob/main/tools/training.py"
click node_evaluation "https://github.com/ssaillesh/automl-researcher/blob/main/agents/eval_agent.py"
click node_metrics "https://github.com/ssaillesh/automl-researcher/blob/main/tools/metrics.py"
click node_ensemble "https://github.com/ssaillesh/automl-researcher/blob/main/agents/ensemble_agent.py"
click node_optimizer "https://github.com/ssaillesh/automl-researcher/blob/main/agents/optimizer_agent.py"
click node_convergence "https://github.com/ssaillesh/automl-researcher/blob/main/tools/convergence.py"
click node_state "https://github.com/ssaillesh/automl-researcher/blob/main/core/experiment_state.py"
click node_store "https://github.com/ssaillesh/automl-researcher/blob/main/core/experiment_store.py"
click node_config "https://github.com/ssaillesh/automl-researcher/blob/main/core/config.py"
click node_llm "https://github.com/ssaillesh/automl-researcher/blob/main/core/llm_client.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_web,node_jobs toneBlue
class node_orchestrator,node_loader,node_data,node_profiling,node_model,node_trainer,node_parallel,node_training,node_evaluation,node_metrics,node_ensemble,node_optimizer,node_convergence toneAmber
class node_knowledge,node_state,node_store,node_config toneMint
class node_llm,node_mlflow,node_nemotron toneRose
class node_user,node_results toneIndigo
```

## Components

### Run interfaces

- [CLI entry](https://github.com/ssaillesh/automl-researcher/blob/main/main.py): `main.py`
- [Browser UI](https://github.com/ssaillesh/automl-researcher/blob/main/webapp.py): `webapp.py`
- [Background jobs](https://github.com/ssaillesh/automl-researcher/blob/main/core/job_manager.py): `core/job_manager.py`

### AutoML workflow

- [Run orchestrator](https://github.com/ssaillesh/automl-researcher/blob/main/orchestrator.py): `orchestrator.py`
- [Dataset loading](https://github.com/ssaillesh/automl-researcher/blob/main/tools/dataset_loader.py): `tools/dataset_loader.py`
- [Data profiling](https://github.com/ssaillesh/automl-researcher/blob/main/agents/data_agent.py): `agents/data_agent.py`
- [Profile utilities](https://github.com/ssaillesh/automl-researcher/blob/main/tools/profiling.py): `tools/profiling.py`
- [Model selection](https://github.com/ssaillesh/automl-researcher/blob/main/agents/model_agent.py): `agents/model_agent.py`
- [Training dispatch](https://github.com/ssaillesh/automl-researcher/blob/main/agents/train_agent.py): `agents/train_agent.py`
- [Parallel runner](https://github.com/ssaillesh/automl-researcher/blob/main/tools/parallel_runner.py): `tools/parallel_runner.py`
- [Model training](https://github.com/ssaillesh/automl-researcher/blob/main/tools/training.py): `tools/training.py`
- [Run evaluation](https://github.com/ssaillesh/automl-researcher/blob/main/agents/eval_agent.py): `agents/eval_agent.py`
- [Metric calculations](https://github.com/ssaillesh/automl-researcher/blob/main/tools/metrics.py): `tools/metrics.py`
- [Ensemble testing](https://github.com/ssaillesh/automl-researcher/blob/main/agents/ensemble_agent.py): `agents/ensemble_agent.py`
- [Optimizer decisions](https://github.com/ssaillesh/automl-researcher/blob/main/agents/optimizer_agent.py): `agents/optimizer_agent.py`
- [Convergence policy](https://github.com/ssaillesh/automl-researcher/blob/main/tools/convergence.py): `tools/convergence.py`

### Experiment runtime

- [Historical knowledge](https://github.com/ssaillesh/automl-researcher/blob/main/core/knowledge_base.py): `core/knowledge_base.py`
- [Experiment state](https://github.com/ssaillesh/automl-researcher/blob/main/core/experiment_state.py): `core/experiment_state.py`
- [Run tracking](https://github.com/ssaillesh/automl-researcher/blob/main/core/experiment_store.py): `core/experiment_store.py`
- [Runtime settings](https://github.com/ssaillesh/automl-researcher/blob/main/core/config.py): `core/config.py`

### External services

- [Reasoning client](https://github.com/ssaillesh/automl-researcher/blob/main/core/llm_client.py): `core/llm_client.py`
- **MLflow tracking**
- **Nemotron API**

### Other components

- **Researcher**
- **Ranked results**

## Connections

- Researcher → CLI entry: starts run (evidence: `README.md`)
- Researcher → Browser UI: submits data (evidence: `README.md`)
- CLI entry → Run orchestrator: runs workflow (evidence: `main.py`)
- Browser UI → Background jobs: submits job (evidence: `webapp.py`)
- Background jobs → Run orchestrator: runs job (evidence: `webapp.py`)
- Run orchestrator → Dataset loading: loads dataset (evidence: `orchestrator.py`)
- Run orchestrator → Data profiling: profiles data (evidence: `README.md`)
- Data profiling → Profile utilities: uses utilities (evidence: `agents/data_agent.py`)
- Run orchestrator → Model selection: requests candidates (evidence: `README.md`)
- Model selection → Historical knowledge: suggests models (evidence: `agents/model_agent.py`)
- Run orchestrator → Training dispatch: dispatches training (evidence: `README.md`)
- Training dispatch → Parallel runner: dispatches jobs (evidence: `agents/train_agent.py`)
- Parallel runner → Model training: runs training (evidence: `tools/parallel_runner.py`)
- Training dispatch → Run tracking: logs runs (evidence: `agents/train_agent.py`)
- Run tracking → MLflow tracking: tracks experiments (evidence: `README.md`)
- Run orchestrator → Run evaluation: evaluates runs (evidence: `README.md`)
- Run evaluation → Metric calculations: computes metrics (evidence: `agents/eval_agent.py`)
- Run orchestrator → Ensemble testing: tests ensembles (evidence: `README.md`)
- Ensemble testing → Metric calculations: scores ensembles (evidence: `agents/ensemble_agent.py`)
- Run orchestrator → Optimizer decisions: requests strategy (evidence: `README.md`)
- Optimizer decisions → Reasoning client: requests reasoning (evidence: `agents/optimizer_agent.py`)
- Ensemble testing → Reasoning client: requests reasoning (evidence: `agents/ensemble_agent.py`)
- Reasoning client → Nemotron API: calls when configured (evidence: `core/llm_client.py`)
- Run orchestrator → Convergence policy: checks stopping (evidence: `README.md`)
- Run orchestrator → Experiment state: updates state (evidence: `orchestrator.py`)
- Optimizer decisions → Experiment state: reads history (evidence: `agents/optimizer_agent.py`)
- Run orchestrator → Historical knowledge: records run (evidence: `orchestrator.py`)
- Runtime settings → Run orchestrator: configures run (evidence: `main.py`)
- Run orchestrator → Ranked results: returns results (evidence: `README.md`)
