# rashikrahman/cse_414_ml_lab architecture

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

- Interactive diagram: https://gitdiagram.com/rashikrahman/cse_414_ml_lab
- Repository: https://github.com/rashikrahman/cse_414_ml_lab

## Overview

This repository is a collection of machine-learning lab coursework and demonstrations, rather than a single application. Its materials span data handling, statistical analysis, classical and deep learning, NLP, segmentation, and image captioning; two weeks also contain runnable image-based demos. The sampled source confirms the face-matching web flow and the captioning inference flow. The root README provides no architectural detail, and most notebooks were not sampled, so their internal links are omitted rather than inferred.

Main entry points: [`week_8/Server/app.py`](https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_8/Server/app.py) (Face match web UI), [`week_12/server/app.py`](https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_12/server/app.py) (Caption inference), [`week_8/Server/helper.py`](https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_8/Server/helper.py) (Face prediction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Data Foundations"]
  node_data_labs["Data analysis"]
  node_stats_labs["Statistics and visualization"]
end

subgraph group_classical["Classical ML"]
  node_regression_labs["Regression"]
  node_classification_labs["Classification"]
  node_evaluation_labs["Evaluation"]
  node_unsupervised_labs["Unsupervised learning"]
end

subgraph group_deep["Deep Learning"]
  node_pytorch_intro["PyTorch introduction"]
  node_nlp_segmentation["NLP and segmentation"]
end

subgraph group_vision_apps["Vision Applications"]
  node_caption_features["Image features<br/>[feature_extract.py]"]
  node_caption_inference["Caption inference<br/>[app.py]"]
  node_caption_models["Caption model training"]
  node_face_web["Face match web UI<br/>[app.py]"]
  node_face_predict["Face prediction<br/>[helper.py]"]
end

node_learner(("Learner"))
node_image_user(("Image user"))

node_image_user -->|"uploads image"| node_face_web
node_face_web -->|"calls prediction"| node_face_predict
node_image_user -->|"submits image"| node_caption_inference

click node_data_labs "https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_1"
click node_stats_labs "https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_3"
click node_regression_labs "https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_4"
click node_classification_labs "https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_6"
click node_evaluation_labs "https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_7"
click node_unsupervised_labs "https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_7"
click node_pytorch_intro "https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_9/PyTorch_Intro.ipynb"
click node_nlp_segmentation "https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_10"
click node_caption_features "https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_12/Notebook/feature_extract.py"
click node_caption_inference "https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_12/server/app.py"
click node_caption_models "https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_12/Notebook"
click node_face_web "https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_8/Server/app.py"
click node_face_predict "https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_8/Server/helper.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_labs,node_stats_labs,node_image_user toneBlue
class node_regression_labs,node_classification_labs,node_evaluation_labs,node_unsupervised_labs toneAmber
class node_pytorch_intro,node_nlp_segmentation toneMint
class node_caption_features,node_caption_inference,node_caption_models,node_face_web,node_face_predict toneRose
class node_learner toneIndigo
```

## Components

### Data Foundations

- [Data analysis](https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_1): `week_1`
- [Statistics and visualization](https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_3): `week_3`

### Classical ML

- [Regression](https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_4): `week_4`
- [Classification](https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_6): `week_6`
- [Evaluation](https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_7): `week_7`
- [Unsupervised learning](https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_7): `week_7`

### Deep Learning

- [PyTorch introduction](https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_9/PyTorch_Intro.ipynb): `week_9/PyTorch_Intro.ipynb`
- [NLP and segmentation](https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_10): `week_10`

### Vision Applications

- [Image features](https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_12/Notebook/feature_extract.py): `week_12/Notebook/feature_extract.py`
- [Caption inference](https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_12/server/app.py): `week_12/server/app.py`
- [Caption model training](https://github.com/rashikrahman/cse_414_ml_lab/tree/main/week_12/Notebook): `week_12/Notebook`
- [Face match web UI](https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_8/Server/app.py): `week_8/Server/app.py`
- [Face prediction](https://github.com/rashikrahman/cse_414_ml_lab/blob/main/week_8/Server/helper.py): `week_8/Server/helper.py`

### Other components

- **Learner**
- **Image user**

## Connections

- Image user → Face match web UI: uploads image (evidence: `week_8/Server/app.py`)
- Face match web UI → Face prediction: calls prediction (evidence: `week_8/Server/app.py`)
- Image user → Caption inference: submits image (evidence: `week_12/server/app.py`)
