# vu-aiml/automl4eo-bloom-nas architecture

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

- Interactive diagram: https://gitdiagram.com/vu-aiml/automl4eo-bloom-nas
- Repository: https://github.com/vu-aiml/automl4eo-bloom-nas

## Overview

This repository implements evolutionary neural-architecture search for Sentinel-2 algal-bloom classification. The main workflow loads lake-level data, reserves a held-out split, evolves MLP configurations using grouped cross-validation on training data, then evaluates selected models against baselines. It also retains preliminary random-search, threshold-tuning, and outcome-analysis capabilities. The graph follows README statements and shown source references; unsampled implementation details are not inferred.

Main entry points: [`data.py`](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/data.py) (Split and folds), [`final_new.py`](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/final_new.py) (Final comparison), [`preliminary/model.py`](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/model.py) (Initial model space), [`preliminary/sweep.py`](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/sweep.py) (Configuration sweep)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data protocol"]
  node_data_pipeline["Split and folds<br/>[data.py]"]
end

subgraph group_search["Architecture search"]
  node_search_space["Extended MLP space<br/>[space2.py]"]
  node_evolution["Regularized evolution<br/>[evolve.py]"]
  node_evo_results["Evolution results<br/>[evo_main.json]"]
end

subgraph group_evaluation["Model evaluation"]
  node_final_eval["Final comparison<br/>[final_new.py]"]
  node_final_results["Final metrics<br/>[final_table.json]"]
end

subgraph group_preliminary["Preliminary studies"]
  node_prelim_model["Initial model space<br/>[model.py]"]
  node_prelim_search["Random search<br/>[search.py]"]
  node_prelim_eval["Held-out evaluation<br/>[final_eval.py]"]
  node_parallel_search["Parallel trials<br/>[parallel_search.py]"]
  node_sweep["Configuration sweep<br/>[sweep.py]"]
  node_threshold["Threshold tuning<br/>[threshold_tune.py]"]
  node_analysis["Search analysis<br/>[analyse.py]"]
  node_budget["Budget analysis<br/>[budget_analysis.py]"]
end

node_engineer(("Researcher"))
node_dataset["Bloom dataset"]

node_engineer -->|"runs search"| node_evolution
node_dataset -->|"loads data"| node_data_pipeline
node_data_pipeline -->|"provides folds"| node_evolution
node_evolution -->|"builds candidates"| node_search_space
node_evolution -->|"writes results"| node_evo_results
node_engineer -->|"runs evaluation"| node_final_eval
node_data_pipeline -->|"provides split"| node_final_eval
node_evo_results -->|"selects models"| node_final_eval
node_search_space -->|"builds models"| node_final_eval
node_final_eval -->|"writes metrics"| node_final_results
node_prelim_search -->|"samples models"| node_prelim_model
node_prelim_search -->|"uses folds"| node_data_pipeline
node_prelim_eval -->|"builds models"| node_prelim_model
node_prelim_eval -->|"uses split"| node_data_pipeline
node_parallel_search -->|"samples models"| node_prelim_model
node_parallel_search -->|"evaluates trials"| node_prelim_search
node_parallel_search -->|"uses folds"| node_data_pipeline
node_sweep -->|"samples models"| node_prelim_model
node_sweep -->|"scores candidates"| node_prelim_search
node_sweep -->|"tests candidates"| node_prelim_eval
node_sweep -->|"uses split"| node_data_pipeline
node_threshold -->|"trains models"| node_prelim_model
node_threshold -->|"uses folds"| node_data_pipeline

click node_data_pipeline "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/data.py"
click node_search_space "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/space2.py"
click node_evolution "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/evolve.py"
click node_evo_results "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/results/evo_main.json"
click node_final_eval "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/final_new.py"
click node_final_results "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/results/final_table.json"
click node_prelim_model "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/model.py"
click node_prelim_search "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/search.py"
click node_prelim_eval "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/final_eval.py"
click node_parallel_search "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/parallel_search.py"
click node_sweep "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/sweep.py"
click node_threshold "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/threshold_tune.py"
click node_analysis "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/analyse.py"
click node_budget "https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/budget_analysis.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_data_pipeline toneBlue
class node_search_space,node_evolution,node_evo_results toneAmber
class node_final_eval,node_final_results toneMint
class node_prelim_model,node_prelim_search,node_prelim_eval,node_parallel_search,node_sweep,node_threshold,node_analysis,node_budget toneRose
class node_engineer,node_dataset toneIndigo
```

## Components

### Data protocol

- [Split and folds](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/data.py): `data.py`

### Architecture search

- [Extended MLP space](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/space2.py): `space2.py`
- [Regularized evolution](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/evolve.py): `evolve.py`
- [Evolution results](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/results/evo_main.json): `results/evo_main.json`

### Model evaluation

- [Final comparison](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/final_new.py): `final_new.py`
- [Final metrics](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/results/final_table.json): `results/final_table.json`

### Preliminary studies

- [Initial model space](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/model.py): `preliminary/model.py`
- [Random search](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/search.py): `preliminary/search.py`
- [Held-out evaluation](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/final_eval.py): `preliminary/final_eval.py`
- [Parallel trials](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/parallel_search.py): `preliminary/parallel_search.py`
- [Configuration sweep](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/sweep.py): `preliminary/sweep.py`
- [Threshold tuning](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/threshold_tune.py): `preliminary/threshold_tune.py`
- [Search analysis](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/analyse.py): `preliminary/analyse.py`
- [Budget analysis](https://github.com/vu-aiml/automl4eo-bloom-nas/blob/main/preliminary/budget_analysis.py): `preliminary/budget_analysis.py`

### Other components

- **Researcher**
- **Bloom dataset**

## Connections

- Researcher → Regularized evolution: runs search (evidence: `README.md`)
- Bloom dataset → Split and folds: loads data (evidence: `data.py`)
- Split and folds → Regularized evolution: provides folds (evidence: `evolve.py`)
- Regularized evolution → Extended MLP space: builds candidates (evidence: `evolve.py`)
- Regularized evolution → Evolution results: writes results (evidence: `README.md`)
- Researcher → Final comparison: runs evaluation (evidence: `README.md`)
- Split and folds → Final comparison: provides split (evidence: `final_new.py`)
- Evolution results → Final comparison: selects models (evidence: `final_new.py`)
- Extended MLP space → Final comparison: builds models (evidence: `final_new.py`)
- Final comparison → Final metrics: writes metrics (evidence: `README.md`)
- Random search → Initial model space: samples models (evidence: `preliminary/search.py`)
- Random search → Split and folds: uses folds (evidence: `preliminary/search.py`)
- Held-out evaluation → Initial model space: builds models (evidence: `preliminary/final_eval.py`)
- Held-out evaluation → Split and folds: uses split (evidence: `preliminary/final_eval.py`)
- Parallel trials → Initial model space: samples models (evidence: `preliminary/parallel_search.py`)
- Parallel trials → Random search: evaluates trials (evidence: `preliminary/parallel_search.py`)
- Parallel trials → Split and folds: uses folds (evidence: `preliminary/parallel_search.py`)
- Configuration sweep → Initial model space: samples models (evidence: `preliminary/sweep.py`)
- Configuration sweep → Random search: scores candidates (evidence: `preliminary/sweep.py`)
- Configuration sweep → Held-out evaluation: tests candidates (evidence: `preliminary/sweep.py`)
- Configuration sweep → Split and folds: uses split (evidence: `preliminary/sweep.py`)
- Threshold tuning → Initial model space: trains models (evidence: `preliminary/threshold_tune.py`)
- Threshold tuning → Split and folds: uses folds (evidence: `preliminary/threshold_tune.py`)
