# lemgarouani/amlbid architecture

> Architecture diagram of the GitHub repository lemgarouani/amlbid, 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/lemgarouani/amlbid
- Repository: https://github.com/lemgarouani/amlbid

## Overview

AMLBID’s main workflow loads a dataset, recommends a classifier configuration, fits and evaluates the model, then optionally builds an interactive explainer dashboard. The recommender combines dataset metafeatures with pipeline selection; the explainer supports model and prediction inspection, feature/SHAP views, decision-tree analysis, and dashboard/report export. The README documents the end-to-end API; source excerpts and the SOURCE INDEX establish selected module relationships. Several implementation details, including preprocessing and search internals, were not sampled, so uncertain wiring is omitted.

Main entry points: [`AMLBID/Explainer/dashboard_components/composites.py`](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/composites.py) (View Composites), [`AMLBID/Explainer/AMLBID_Explainer.py`](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/AMLBID_Explainer.py) (Model Explainer), [`AMLBID/Explainer/AMLBID_Dashboard.py`](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/AMLBID_Dashboard.py) (Dashboard Runtime), [`AMLBID/Recommender/AMLBID_Recommender.py`](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/AMLBID_Recommender.py) (Recommendation API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data and Profiling"]
  node_data_loader["Dataset Loader<br/>[loader.py]"]
  node_metafeatures["Metafeature Extraction"]
end

subgraph group_recommend["Pipeline Recommendation"]
  node_recommend_api["Recommendation API"]
  node_recommender_loader["Pipeline Lookup<br/>[loader.py]"]
  node_pipeline_search["Classifier Search"]
  node_grid_metrics["Grid Metrics<br/>[tpot_metrics.py]"]
  node_fit_model["Fit and Score"]
  node_pipeline_export["Pipeline Export"]
end

subgraph group_explain["Model Explanation"]
  node_explainer["Model Explainer"]
  node_explainer_methods["Explanation Methods"]
  node_explainer_plots["Explanation Plots<br/>[explainer_plots.py]"]
  node_callables["Callable Helpers<br/>[make_callables.py]"]
end

subgraph group_dashboard["Interactive Dashboard"]
  node_dashboard["Dashboard Runtime"]
  node_dashboard_tabs["Dashboard Tabs<br/>[dashboard_tabs.py]"]
  node_dashboard_methods["Dashboard Methods"]
  node_classifier_views["Classifier Views"]
  node_overview_views["Overview Views"]
  node_regression_views["Regression Views"]
  node_shap_views["SHAP Views<br/>[shap_components.py]"]
  node_tree_views["Decision Tree Views"]
  node_connectors["View Connectors<br/>[connectors.py]"]
  node_composites["View Composites<br/>[composites.py]"]
  node_html_export["HTML Export<br/>[to_html.py]"]
end

node_user(("Analyst"))

node_user -->|"loads data"| node_data_loader
node_user -->|"requests recommendation"| node_recommend_api
node_recommend_api -->|"extracts features"| node_metafeatures
node_recommend_api -->|"queries pipelines"| node_recommender_loader
node_recommend_api -.->|"selects configuration"| node_pipeline_search
node_pipeline_search -->|"scores candidates"| node_grid_metrics
node_user -->|"fits model"| node_fit_model
node_fit_model -->|"exports code"| node_pipeline_export
node_user -->|"requests explanation"| node_explainer
node_explainer -->|"uses methods"| node_explainer_methods
node_explainer -->|"uses plots"| node_explainer_plots
node_explainer -->|"uses helpers"| node_callables
node_explainer -->|"opens dashboard"| node_dashboard
node_dashboard -->|"loads tabs"| node_dashboard_tabs
node_dashboard -->|"renders views"| node_composites
node_composites -->|"composes views"| node_classifier_views
node_composites -->|"composes views"| node_regression_views
node_composites -->|"composes views"| node_overview_views
node_composites -->|"composes views"| node_shap_views
node_composites -->|"composes views"| node_tree_views
node_shap_views -->|"links selections"| node_connectors
node_dashboard -->|"uses methods"| node_dashboard_methods
node_dashboard -->|"exports dashboard"| node_html_export

click node_data_loader "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/loader.py"
click node_metafeatures "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/recommender_components/MetafeaturesExtractor.py"
click node_recommend_api "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/AMLBID_Recommender.py"
click node_recommender_loader "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/recommender_components/loader.py"
click node_pipeline_search "https://github.com/lemgarouani/amlbid/tree/master/AMLBID/Recommender/recommender_components/ModelsCode"
click node_grid_metrics "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/recommender_components/ModelsCode/grid_search/tpot_metrics.py"
click node_fit_model "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/AMLBID_Recommender.py"
click node_pipeline_export "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/AMLBID_Recommender.py"
click node_explainer "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/AMLBID_Explainer.py"
click node_explainer_methods "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/explainer_methods.py"
click node_explainer_plots "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/explainer_plots.py"
click node_callables "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/make_callables.py"
click node_dashboard "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/AMLBID_Dashboard.py"
click node_dashboard_tabs "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_tabs.py"
click node_dashboard_methods "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_methods.py"
click node_classifier_views "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/classifier_components.py"
click node_overview_views "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/overview_components.py"
click node_regression_views "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/regression_components.py"
click node_shap_views "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/shap_components.py"
click node_tree_views "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/decisiontree_components.py"
click node_connectors "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/connectors.py"
click node_composites "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/composites.py"
click node_html_export "https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/to_html.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_loader,node_metafeatures toneBlue
class node_recommend_api,node_recommender_loader,node_pipeline_search,node_grid_metrics,node_fit_model,node_pipeline_export toneAmber
class node_explainer,node_explainer_methods,node_explainer_plots,node_callables toneMint
class node_dashboard,node_dashboard_tabs,node_dashboard_methods,node_classifier_views,node_overview_views,node_regression_views,node_shap_views,node_tree_views,node_connectors,node_composites,node_html_export toneRose
class node_user toneIndigo
```

## Components

### Data and Profiling

- [Dataset Loader](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/loader.py): `AMLBID/loader.py`
- [Metafeature Extraction](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/recommender_components/MetafeaturesExtractor.py): `AMLBID/Recommender/recommender_components/MetafeaturesExtractor.py`

### Pipeline Recommendation

- [Recommendation API](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/AMLBID_Recommender.py): `AMLBID/Recommender/AMLBID_Recommender.py`
- [Pipeline Lookup](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/recommender_components/loader.py): `AMLBID/Recommender/recommender_components/loader.py`
- [Classifier Search](https://github.com/lemgarouani/amlbid/tree/master/AMLBID/Recommender/recommender_components/ModelsCode): `AMLBID/Recommender/recommender_components/ModelsCode`
- [Grid Metrics](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/recommender_components/ModelsCode/grid_search/tpot_metrics.py): `AMLBID/Recommender/recommender_components/ModelsCode/grid_search/tpot_metrics.py`
- [Fit and Score](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/AMLBID_Recommender.py): `AMLBID/Recommender/AMLBID_Recommender.py`
- [Pipeline Export](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Recommender/AMLBID_Recommender.py): `AMLBID/Recommender/AMLBID_Recommender.py`

### Model Explanation

- [Model Explainer](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/AMLBID_Explainer.py): `AMLBID/Explainer/AMLBID_Explainer.py`
- [Explanation Methods](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/explainer_methods.py): `AMLBID/Explainer/explainer_methods.py`
- [Explanation Plots](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/explainer_plots.py): `AMLBID/Explainer/explainer_plots.py`
- [Callable Helpers](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/make_callables.py): `AMLBID/Explainer/make_callables.py`

### Interactive Dashboard

- [Dashboard Runtime](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/AMLBID_Dashboard.py): `AMLBID/Explainer/AMLBID_Dashboard.py`
- [Dashboard Tabs](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_tabs.py): `AMLBID/Explainer/dashboard_tabs.py`
- [Dashboard Methods](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_methods.py): `AMLBID/Explainer/dashboard_methods.py`
- [Classifier Views](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/classifier_components.py): `AMLBID/Explainer/dashboard_components/classifier_components.py`
- [Overview Views](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/overview_components.py): `AMLBID/Explainer/dashboard_components/overview_components.py`
- [Regression Views](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/regression_components.py): `AMLBID/Explainer/dashboard_components/regression_components.py`
- [SHAP Views](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/shap_components.py): `AMLBID/Explainer/dashboard_components/shap_components.py`
- [Decision Tree Views](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/decisiontree_components.py): `AMLBID/Explainer/dashboard_components/decisiontree_components.py`
- [View Connectors](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/connectors.py): `AMLBID/Explainer/dashboard_components/connectors.py`
- [View Composites](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/dashboard_components/composites.py): `AMLBID/Explainer/dashboard_components/composites.py`
- [HTML Export](https://github.com/lemgarouani/amlbid/blob/master/AMLBID/Explainer/to_html.py): `AMLBID/Explainer/to_html.py`

### Other components

- **Analyst**

## Connections

- Analyst → Dataset Loader: loads data
- Analyst → Recommendation API: requests recommendation
- Recommendation API → Metafeature Extraction: extracts features (evidence: `AMLBID/Recommender/AMLBID_Recommender.py`)
- Recommendation API → Pipeline Lookup: queries pipelines (evidence: `AMLBID/Recommender/AMLBID_Recommender.py`)
- Recommendation API → Classifier Search: selects configuration
- Classifier Search → Grid Metrics: scores candidates (evidence: `AMLBID/Recommender/recommender_components/ModelsCode/grid_search/evaluate_model.py`)
- Analyst → Fit and Score: fits model
- Fit and Score → Pipeline Export: exports code (evidence: `AMLBID/Recommender/AMLBID_Recommender.py`)
- Analyst → Model Explainer: requests explanation
- Model Explainer → Explanation Methods: uses methods (evidence: `AMLBID/Explainer/AMLBID_Explainer.py`)
- Model Explainer → Explanation Plots: uses plots (evidence: `AMLBID/Explainer/AMLBID_Explainer.py`)
- Model Explainer → Callable Helpers: uses helpers (evidence: `AMLBID/Explainer/AMLBID_Explainer.py`)
- Model Explainer → Dashboard Runtime: opens dashboard (evidence: `AMLBID/Explainer/AMLBID_Explainer.py`)
- Dashboard Runtime → Dashboard Tabs: loads tabs (evidence: `AMLBID/Explainer/AMLBID_Dashboard.py`)
- Dashboard Runtime → View Composites: renders views (evidence: `AMLBID/Explainer/dashboard_components/composites.py`)
- View Composites → Classifier Views: composes views (evidence: `AMLBID/Explainer/dashboard_components/composites.py`)
- View Composites → Regression Views: composes views (evidence: `AMLBID/Explainer/dashboard_components/composites.py`)
- View Composites → Overview Views: composes views (evidence: `AMLBID/Explainer/dashboard_components/composites.py`)
- View Composites → SHAP Views: composes views (evidence: `AMLBID/Explainer/dashboard_components/composites.py`)
- View Composites → Decision Tree Views: composes views (evidence: `AMLBID/Explainer/dashboard_components/composites.py`)
- SHAP Views → View Connectors: links selections (evidence: `AMLBID/Explainer/dashboard_components/shap_components.py`)
- Dashboard Runtime → Dashboard Methods: uses methods
- Dashboard Runtime → HTML Export: exports dashboard (evidence: `AMLBID/Explainer/AMLBID_Dashboard.py`)
