# tankwin08/ensemble-models-ml-dl- architecture

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

- Interactive diagram: https://gitdiagram.com/tankwin08/ensemble-models-ml-dl-
- Repository: https://github.com/tankwin08/ensemble-models-ml-dl-

## Overview

This repository is a notebook-based classification ensemble for predicting whether a person wears glasses. Its documented workflow trains a neural network and three tree-based model types with ten-fold cross-validation, gathers validation and test predictions, fits logistic regression to validation predictions, and saves a final submission. The README describes the workflow, but no notebook source was provided, so the graph reflects documented relationships rather than verified implementation calls.

Main entry points: [`ensemble_models.ipynb`](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb) (10-Fold CV), [`data/train.csv`](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/data/train.csv) (Training Data), [`data/test.csv`](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/data/test.csv) (Test Data), [`data/submit/submit_nn_ensembles.csv`](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/data/submit/submit_nn_ensembles.csv) (Submission Output)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data"]
  node_train_data["Training Data<br/>[train.csv]"]
  node_test_data["Test Data<br/>[test.csv]"]
  node_submission["Submission Output"]
end

subgraph group_models["Base Models"]
  node_nn["Neural Network"]
  node_random_forest["Random Forest"]
  node_gradient_boosting["Gradient Boosting"]
  node_extra_trees["Extra Trees"]
end

subgraph group_ensemble["Ensembling"]
  node_cross_validation["10-Fold CV"]
  node_validation_predictions["Validation Predictions"]
  node_test_predictions["Averaged Test Predictions"]
  node_logistic_meta["Logistic Meta-Model"]
end

node_analyst(("Analyst"))

node_analyst -->|"runs workflow"| node_cross_validation
node_train_data -->|"provides folds"| node_cross_validation
node_test_data -->|"provides test data"| node_cross_validation
node_cross_validation -->|"trains folds"| node_nn
node_cross_validation -->|"trains folds"| node_random_forest
node_cross_validation -->|"trains folds"| node_gradient_boosting
node_cross_validation -->|"trains folds"| node_extra_trees
node_nn -->|"collects predictions"| node_validation_predictions
node_random_forest -->|"collects predictions"| node_validation_predictions
node_gradient_boosting -->|"collects predictions"| node_validation_predictions
node_extra_trees -->|"collects predictions"| node_validation_predictions
node_nn -->|"averages folds"| node_test_predictions
node_random_forest -->|"averages folds"| node_test_predictions
node_gradient_boosting -->|"averages folds"| node_test_predictions
node_extra_trees -->|"averages folds"| node_test_predictions
node_validation_predictions -->|"fits weights"| node_logistic_meta
node_test_predictions -->|"predicts output"| node_logistic_meta
node_logistic_meta -->|"formats and saves"| node_submission

click node_train_data "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/data/train.csv"
click node_test_data "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/data/test.csv"
click node_nn "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb"
click node_random_forest "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb"
click node_gradient_boosting "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb"
click node_extra_trees "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb"
click node_cross_validation "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb"
click node_validation_predictions "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb"
click node_test_predictions "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb"
click node_logistic_meta "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb"
click node_submission "https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/data/submit/submit_nn_ensembles.csv"

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_train_data,node_test_data,node_submission toneBlue
class node_nn,node_random_forest,node_gradient_boosting,node_extra_trees toneAmber
class node_cross_validation,node_validation_predictions,node_test_predictions,node_logistic_meta toneMint
class node_analyst toneIndigo
```

## Components

### Data

- [Training Data](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/data/train.csv): `data/train.csv`
- [Test Data](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/data/test.csv): `data/test.csv`
- [Submission Output](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/data/submit/submit_nn_ensembles.csv): `data/submit/submit_nn_ensembles.csv`

### Base Models

- [Neural Network](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb): `ensemble_models.ipynb`
- [Random Forest](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb): `ensemble_models.ipynb`
- [Gradient Boosting](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb): `ensemble_models.ipynb`
- [Extra Trees](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb): `ensemble_models.ipynb`

### Ensembling

- [10-Fold CV](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb): `ensemble_models.ipynb`
- [Validation Predictions](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb): `ensemble_models.ipynb`
- [Averaged Test Predictions](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb): `ensemble_models.ipynb`
- [Logistic Meta-Model](https://github.com/tankwin08/ensemble-models-ml-dl-/blob/master/ensemble_models.ipynb): `ensemble_models.ipynb`

### Other components

- **Analyst**

## Connections

- Analyst → 10-Fold CV: runs workflow (evidence: `README.md`)
- Training Data → 10-Fold CV: provides folds (evidence: `README.md`)
- Test Data → 10-Fold CV: provides test data (evidence: `README.md`)
- 10-Fold CV → Neural Network: trains folds (evidence: `README.md`)
- 10-Fold CV → Random Forest: trains folds (evidence: `README.md`)
- 10-Fold CV → Gradient Boosting: trains folds (evidence: `README.md`)
- 10-Fold CV → Extra Trees: trains folds (evidence: `README.md`)
- Neural Network → Validation Predictions: collects predictions (evidence: `README.md`)
- Random Forest → Validation Predictions: collects predictions (evidence: `README.md`)
- Gradient Boosting → Validation Predictions: collects predictions (evidence: `README.md`)
- Extra Trees → Validation Predictions: collects predictions (evidence: `README.md`)
- Neural Network → Averaged Test Predictions: averages folds (evidence: `README.md`)
- Random Forest → Averaged Test Predictions: averages folds (evidence: `README.md`)
- Gradient Boosting → Averaged Test Predictions: averages folds (evidence: `README.md`)
- Extra Trees → Averaged Test Predictions: averages folds (evidence: `README.md`)
- Validation Predictions → Logistic Meta-Model: fits weights (evidence: `README.md`)
- Averaged Test Predictions → Logistic Meta-Model: predicts output (evidence: `README.md`)
- Logistic Meta-Model → Submission Output: formats and saves (evidence: `README.md`)
