# ndofhiwa/machine-learning-labs-1-3 architecture

> Architecture diagram of the GitHub repository ndofhiwa/machine-learning-labs-1-3, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ndofhiwa/machine-learning-labs-1-3
- Repository: https://github.com/ndofhiwa/machine-learning-labs-1-3

## Overview

This repository is a coursework series of executable machine-learning notebooks. The user workflow is to open a lab, run its data preparation and model experiments, then inspect plots and evaluation results. Lab 1 introduces supervised and unsupervised classifiers; Lab 2 builds and studies a Perceptron from scratch; Lab 3 compares, tunes, and visualizes classifiers on Iris and Moons. Relationships shown are documented in the README; notebook internals were not sampled.

Main entry points: [`lab-3.ipynb`](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb) (Classifier Showdown), [`Lab-2.ipynb`](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/Lab-2.ipynb) (Custom Perceptron), [`lab1.ipynb`](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab1.ipynb) (Foundations Notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["ML Foundations"]
  node_lab1["Foundations Notebook<br/>[lab1.ipynb]"]
  node_lab1results["Plots and Metrics<br/>[lab1.ipynb]"]
end

subgraph group_perceptron["Perceptron Lab"]
  node_lab2["Custom Perceptron<br/>[Lab-2.ipynb]"]
  node_lab2results["Learning Visualizations<br/>[Lab-2.ipynb]"]
  node_lab2iris["Iris Exercise<br/>[Lab-2.ipynb]"]
end

subgraph group_comparison["Classifier Comparison"]
  node_lab3["Classifier Showdown<br/>[lab-3.ipynb]"]
  node_prep["Data Preparation<br/>[lab-3.ipynb]"]
  node_classifiers["Classifier Experiments<br/>[lab-3.ipynb]"]
  node_tuning["Grid Search<br/>[lab-3.ipynb]"]
  node_comparisonresults["Plots and Comparison<br/>[lab-3.ipynb]"]
end

node_learner(("Learner"))
node_iris[("Iris Dataset")]
node_toydata[("Book Dataset")]
node_moons[("Moons Dataset")]

node_learner -->|"runs"| node_lab1
node_lab1 -->|"loads"| node_iris
node_lab1 -->|"reports"| node_lab1results
node_learner -->|"runs"| node_lab2
node_lab2 -->|"trains on"| node_toydata
node_lab2 -->|"visualizes"| node_lab2results
node_lab2 -->|"applies to"| node_lab2iris
node_lab2iris -->|"uses"| node_iris
node_learner -->|"runs"| node_lab3
node_lab3 -->|"prepares"| node_prep
node_prep -->|"loads"| node_iris
node_prep -->|"generates"| node_moons
node_lab3 -->|"trains"| node_classifiers
node_lab3 -->|"tunes"| node_tuning
node_lab3 -->|"compares and plots"| node_comparisonresults

click node_lab1 "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab1.ipynb"
click node_lab1results "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab1.ipynb"
click node_lab2 "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/Lab-2.ipynb"
click node_lab2results "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/Lab-2.ipynb"
click node_lab2iris "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/Lab-2.ipynb"
click node_lab3 "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb"
click node_prep "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb"
click node_classifiers "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb"
click node_tuning "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb"
click node_comparisonresults "https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb"

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_lab1,node_lab1results toneBlue
class node_lab2,node_lab2results,node_lab2iris,node_iris,node_toydata,node_moons toneAmber
class node_lab3,node_prep,node_classifiers,node_tuning,node_comparisonresults toneMint
class node_learner toneIndigo
```

## Components

### ML Foundations

- [Foundations Notebook](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab1.ipynb): `lab1.ipynb`
- [Plots and Metrics](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab1.ipynb): `lab1.ipynb`

### Perceptron Lab

- [Custom Perceptron](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/Lab-2.ipynb): `Lab-2.ipynb`
- [Learning Visualizations](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/Lab-2.ipynb): `Lab-2.ipynb`
- [Iris Exercise](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/Lab-2.ipynb): `Lab-2.ipynb`

### Classifier Comparison

- [Classifier Showdown](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb): `lab-3.ipynb`
- [Data Preparation](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb): `lab-3.ipynb`
- [Classifier Experiments](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb): `lab-3.ipynb`
- [Grid Search](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb): `lab-3.ipynb`
- [Plots and Comparison](https://github.com/ndofhiwa/machine-learning-labs-1-3/blob/main/lab-3.ipynb): `lab-3.ipynb`

### Other components

- **Learner**
- **Iris Dataset**
- **Book Dataset**
- **Moons Dataset**

## Connections

- Learner → Foundations Notebook: runs (evidence: `README.md`)
- Foundations Notebook → Iris Dataset: loads (evidence: `README.md`)
- Foundations Notebook → Plots and Metrics: reports (evidence: `README.md`)
- Learner → Custom Perceptron: runs (evidence: `README.md`)
- Custom Perceptron → Book Dataset: trains on (evidence: `README.md`)
- Custom Perceptron → Learning Visualizations: visualizes (evidence: `README.md`)
- Custom Perceptron → Iris Exercise: applies to (evidence: `README.md`)
- Iris Exercise → Iris Dataset: uses (evidence: `README.md`)
- Learner → Classifier Showdown: runs (evidence: `README.md`)
- Classifier Showdown → Data Preparation: prepares (evidence: `README.md`)
- Data Preparation → Iris Dataset: loads (evidence: `README.md`)
- Data Preparation → Moons Dataset: generates (evidence: `README.md`)
- Classifier Showdown → Classifier Experiments: trains (evidence: `README.md`)
- Classifier Showdown → Grid Search: tunes (evidence: `README.md`)
- Classifier Showdown → Plots and Comparison: compares and plots (evidence: `README.md`)
