# jignesh160/semiconductor-bandgap-ml-moga architecture

> Architecture diagram of the GitHub repository jignesh160/semiconductor-bandgap-ml-moga, 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/jignesh160/semiconductor-bandgap-ml-moga
- Repository: https://github.com/jignesh160/semiconductor-bandgap-ml-moga

## Overview

This is an end-to-end semiconductor band-gap prediction and design workflow. The user runs the pipeline, which loads reference materials, augments and engineers descriptors, benchmarks regressors, then interprets and quantifies uncertainty for predictions before optimizing candidates against target band gap and stability objectives. Outputs include comparison tables, Pareto solutions, summaries, and figures. README capabilities supplement the sampled implementation where source excerpts are incomplete; unsampled subsystem links are omitted when their runtime relationship is not established.

Main entry points: [`main_pipeline.py`](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/main_pipeline.py) (Pipeline Runner), [`config.py`](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/config.py) (Pipeline Config), [`monte_carlo.py`](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/monte_carlo.py) (Copula Sampler), [`data_loader.py`](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/data_loader.py) (Reference Loader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow"]
  node_pipeline["Pipeline Runner<br/>[main_pipeline.py]"]
  node_config["Pipeline Config<br/>[config.py]"]
  node_results["Evaluation Results"]
end

subgraph group_data["Materials Data"]
  node_loader["Reference Loader<br/>[data_loader.py]"]
  node_reference[("Reference Records")]
  node_sampler["Copula Sampler<br/>[monte_carlo.py]"]
  node_synthetic[("Synthetic Records")]
end

subgraph group_modeling["Prediction"]
  node_features["Descriptor Engineering"]
  node_regressors["Regression Suite<br/>[models.py]"]
end

subgraph group_analysis["Interpretation &amp; Design"]
  node_shap["SHAP Analysis<br/>[explainability.py]"]
  node_uncertainty["Bootstrap Uncertainty<br/>[explainability.py]"]
  node_optimizer["NSGA-II Optimizer<br/>[moga.py]"]
  node_pareto["Pareto Candidates"]
  node_plots["Result Visualizations<br/>[visualisation.py]"]
end

node_user(("Pipeline User"))
node_jarvis[("JARVIS-DFT")]

node_user -->|"runs"| node_pipeline
node_pipeline -->|"loads records"| node_loader
node_jarvis -->|"supplies dataset"| node_loader
node_loader -->|"caches records"| node_reference
node_pipeline -->|"generates samples"| node_sampler
node_sampler -->|"samples distribution"| node_reference
node_sampler -.->|"writes samples"| node_synthetic
node_pipeline -->|"engineers descriptors"| node_features
node_pipeline -->|"trains and compares"| node_regressors
node_pipeline -->|"analyzes model"| node_shap
node_pipeline -->|"estimates intervals"| node_uncertainty
node_pipeline -->|"runs optimization"| node_optimizer
node_optimizer -->|"engineers candidates"| node_features
node_pipeline -->|"saves candidates"| node_pareto
node_pipeline -->|"renders figures"| node_plots
node_pipeline -->|"writes evaluations"| node_results
node_config -->|"configures loading"| node_loader
node_config -->|"configures sampling"| node_sampler
node_config -->|"sets model parameters"| node_regressors
node_config -->|"sets optimization"| node_optimizer
node_config -->|"sets analysis options"| node_shap
node_config -->|"sets plot options"| node_plots

click node_pipeline "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/main_pipeline.py"
click node_config "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/config.py"
click node_loader "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/data_loader.py"
click node_reference "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/data/reference_semiconductors.csv"
click node_sampler "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/monte_carlo.py"
click node_synthetic "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/data/synthetic_semiconductors.csv"
click node_features "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/feature_engineering.py"
click node_regressors "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/models.py"
click node_shap "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/explainability.py"
click node_uncertainty "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/explainability.py"
click node_optimizer "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/moga.py"
click node_pareto "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/results/pareto_solutions.csv"
click node_plots "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/visualisation.py"
click node_results "https://github.com/jignesh160/semiconductor-bandgap-ml-moga/tree/main/results"

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_pipeline,node_config,node_results,node_user toneBlue
class node_loader,node_reference,node_sampler,node_synthetic,node_jarvis toneAmber
class node_features,node_regressors toneMint
class node_shap,node_uncertainty,node_optimizer,node_pareto,node_plots toneRose
```

## Components

### Workflow

- [Pipeline Runner](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/main_pipeline.py): `main_pipeline.py`
- [Pipeline Config](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/config.py): `config.py`
- [Evaluation Results](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/tree/main/results): `results`

### Materials Data

- [Reference Loader](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/data_loader.py): `data_loader.py`
- [Reference Records](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/data/reference_semiconductors.csv): `data/reference_semiconductors.csv`
- [Copula Sampler](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/monte_carlo.py): `monte_carlo.py`
- [Synthetic Records](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/data/synthetic_semiconductors.csv): `data/synthetic_semiconductors.csv`

### Prediction

- [Descriptor Engineering](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/feature_engineering.py): `feature_engineering.py`
- [Regression Suite](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/models.py): `models.py`

### Interpretation & Design

- [SHAP Analysis](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/explainability.py): `explainability.py`
- [Bootstrap Uncertainty](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/explainability.py): `explainability.py`
- [NSGA-II Optimizer](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/moga.py): `moga.py`
- [Pareto Candidates](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/results/pareto_solutions.csv): `results/pareto_solutions.csv`
- [Result Visualizations](https://github.com/jignesh160/semiconductor-bandgap-ml-moga/blob/main/visualisation.py): `visualisation.py`

### Other components

- **Pipeline User**
- **JARVIS-DFT**

## Connections

- Pipeline User → Pipeline Runner: runs (evidence: `README.md`)
- Pipeline Runner → Reference Loader: loads records (evidence: `main_pipeline.py`)
- JARVIS-DFT → Reference Loader: supplies dataset (evidence: `README.md`)
- Reference Loader → Reference Records: caches records (evidence: `README.md`)
- Pipeline Runner → Copula Sampler: generates samples (evidence: `main_pipeline.py`)
- Copula Sampler → Reference Records: samples distribution (evidence: `monte_carlo.py`)
- Copula Sampler → Synthetic Records: writes samples
- Pipeline Runner → Descriptor Engineering: engineers descriptors (evidence: `README.md`)
- Pipeline Runner → Regression Suite: trains and compares (evidence: `main_pipeline.py`)
- Pipeline Runner → SHAP Analysis: analyzes model (evidence: `main_pipeline.py`)
- Pipeline Runner → Bootstrap Uncertainty: estimates intervals (evidence: `main_pipeline.py`)
- Pipeline Runner → NSGA-II Optimizer: runs optimization (evidence: `main_pipeline.py`)
- NSGA-II Optimizer → Descriptor Engineering: engineers candidates (evidence: `moga.py`)
- Pipeline Runner → Pareto Candidates: saves candidates (evidence: `README.md`)
- Pipeline Runner → Result Visualizations: renders figures (evidence: `main_pipeline.py`)
- Pipeline Runner → Evaluation Results: writes evaluations (evidence: `main_pipeline.py`)
- Pipeline Config → Reference Loader: configures loading (evidence: `data_loader.py`)
- Pipeline Config → Copula Sampler: configures sampling (evidence: `monte_carlo.py`)
- Pipeline Config → Regression Suite: sets model parameters (evidence: `models.py`)
- Pipeline Config → NSGA-II Optimizer: sets optimization (evidence: `moga.py`)
- Pipeline Config → SHAP Analysis: sets analysis options (evidence: `explainability.py`)
- Pipeline Config → Result Visualizations: sets plot options (evidence: `visualisation.py`)
