# kaspergl/ml26 architecture

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

- Interactive diagram: https://gitdiagram.com/kaspergl/ml26
- Repository: https://github.com/kaspergl/ml26

## Overview

This repository is a machine-learning course organized as weekly lessons, notebooks, exercises, and paired solution materials—not a deployed application. A learner’s broad workflow is to study a topic, work through its exercise or notebook, and consult solution directories where available. The sampled Python modules cover regression, nonlinear classification, and ensemble boosting. Most notebooks and README files were not excerpted, so their detailed contents and cross-week dependencies cannot be verified; dashed links indicate the high-level learner workflow rather than code calls.

Main entry points: [`week1`](https://github.com/kaspergl/ml26/tree/main/week1) (Python & sklearn), [`week1Solutions`](https://github.com/kaspergl/ml26/tree/main/week1Solutions) (Week 1 Solutions), [`week5/theory.ipynb`](https://github.com/kaspergl/ml26/blob/main/week5/theory.ipynb) (Week 5 Theory), [`week6/theory.ipynb`](https://github.com/kaspergl/ml26/blob/main/week6/theory.ipynb) (Week 6 Theory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Foundations"]
  node_week1["Python &amp; sklearn"]
  node_week1solutions["Week 1 Solutions"]
  node_week5["Week 5 Theory<br/>[theory.ipynb]"]
  node_week6["Week 6 Theory<br/>[theory.ipynb]"]
end

subgraph group_models["Core Models"]
  node_week2["Regression Stumps"]
  node_week2solutions["Stump Solutions"]
  node_week3["Linear Regression"]
  node_week3solutions["Regression Solutions"]
  node_week4["Nonlinear Models<br/>[code_nonlinear.py]"]
  node_week4solutions["Nonlinear Solutions<br/>[code_nonlinear.py]"]
  node_week7["Bias &amp; Variance<br/>[BiasVariance.ipynb]"]
end

subgraph group_ensembles["Ensembles"]
  node_week8ada["AdaBoost<br/>[adaboost.py]"]
  node_week8grad["Gradient Boosting<br/>[gradientboost.py]"]
  node_week8solutions["Boosting Solutions"]
end

subgraph group_advanced["Advanced Topics"]
  node_week9["Week 9 Theory<br/>[theory.ipynb]"]
  node_week10["Week 10 Exercises<br/>[Exercises.ipynb]"]
  node_week12["Week 12 Theory<br/>[theory.ipynb]"]
  node_week13["Skip-gram<br/>[skipgram.ipynb]"]
  node_handins["Hand-in Assignments"]
end

node_learner(("Learner"))

node_learner -.->|"studies"| node_week1
node_learner -.->|"practices"| node_week2
node_learner -.->|"practices"| node_week3
node_learner -.->|"practices"| node_week4
node_learner -.->|"studies"| node_week5
node_learner -.->|"studies"| node_week6
node_learner -.->|"studies"| node_week7
node_learner -.->|"practices"| node_week8ada
node_learner -.->|"practices"| node_week8grad
node_learner -.->|"studies"| node_week9
node_learner -.->|"completes"| node_week10
node_learner -.->|"studies"| node_week12
node_learner -.->|"practices"| node_week13
node_learner -.->|"submits"| node_handins
node_learner -.->|"consults"| node_week1solutions
node_learner -.->|"consults"| node_week2solutions
node_learner -.->|"consults"| node_week3solutions
node_learner -.->|"consults"| node_week4solutions
node_learner -.->|"consults"| node_week8solutions

click node_week1 "https://github.com/kaspergl/ml26/tree/main/week1"
click node_week1solutions "https://github.com/kaspergl/ml26/tree/main/week1Solutions"
click node_week2 "https://github.com/kaspergl/ml26/blob/main/week2/regression_stumps.py"
click node_week2solutions "https://github.com/kaspergl/ml26/blob/main/week2Solutions/regression_stumps.py"
click node_week3 "https://github.com/kaspergl/ml26/blob/main/week3/linear_regression.py"
click node_week3solutions "https://github.com/kaspergl/ml26/blob/main/week3Solutions/linear_regression.py"
click node_week4 "https://github.com/kaspergl/ml26/blob/main/week4/code_nonlinear.py"
click node_week4solutions "https://github.com/kaspergl/ml26/blob/main/week4Solutions/code_nonlinear.py"
click node_week5 "https://github.com/kaspergl/ml26/blob/main/week5/theory.ipynb"
click node_week6 "https://github.com/kaspergl/ml26/blob/main/week6/theory.ipynb"
click node_week7 "https://github.com/kaspergl/ml26/blob/main/week7/BiasVariance.ipynb"
click node_week8ada "https://github.com/kaspergl/ml26/blob/main/week8/adaboost.py"
click node_week8grad "https://github.com/kaspergl/ml26/blob/main/week8/gradientboost.py"
click node_week8solutions "https://github.com/kaspergl/ml26/tree/main/week8Solutions"
click node_week9 "https://github.com/kaspergl/ml26/blob/main/week9/theory.ipynb"
click node_week10 "https://github.com/kaspergl/ml26/blob/main/week10/Exercises.ipynb"
click node_week12 "https://github.com/kaspergl/ml26/blob/main/week12/theory.ipynb"
click node_week13 "https://github.com/kaspergl/ml26/blob/main/week13/skipgram.ipynb"
click node_handins "https://github.com/kaspergl/ml26/tree/main/handins"

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_week1,node_week1solutions,node_week5,node_week6 toneBlue
class node_week2,node_week2solutions,node_week3,node_week3solutions,node_week4,node_week4solutions,node_week7 toneAmber
class node_week8ada,node_week8grad,node_week8solutions toneMint
class node_week9,node_week10,node_week12,node_week13,node_handins toneRose
class node_learner toneIndigo
```

## Components

### Foundations

- [Python & sklearn](https://github.com/kaspergl/ml26/tree/main/week1): `week1`
- [Week 1 Solutions](https://github.com/kaspergl/ml26/tree/main/week1Solutions): `week1Solutions`
- [Week 5 Theory](https://github.com/kaspergl/ml26/blob/main/week5/theory.ipynb): `week5/theory.ipynb`
- [Week 6 Theory](https://github.com/kaspergl/ml26/blob/main/week6/theory.ipynb): `week6/theory.ipynb`

### Core Models

- [Regression Stumps](https://github.com/kaspergl/ml26/blob/main/week2/regression_stumps.py): `week2/regression_stumps.py`
- [Stump Solutions](https://github.com/kaspergl/ml26/blob/main/week2Solutions/regression_stumps.py): `week2Solutions/regression_stumps.py`
- [Linear Regression](https://github.com/kaspergl/ml26/blob/main/week3/linear_regression.py): `week3/linear_regression.py`
- [Regression Solutions](https://github.com/kaspergl/ml26/blob/main/week3Solutions/linear_regression.py): `week3Solutions/linear_regression.py`
- [Nonlinear Models](https://github.com/kaspergl/ml26/blob/main/week4/code_nonlinear.py): `week4/code_nonlinear.py`
- [Nonlinear Solutions](https://github.com/kaspergl/ml26/blob/main/week4Solutions/code_nonlinear.py): `week4Solutions/code_nonlinear.py`
- [Bias & Variance](https://github.com/kaspergl/ml26/blob/main/week7/BiasVariance.ipynb): `week7/BiasVariance.ipynb`

### Ensembles

- [AdaBoost](https://github.com/kaspergl/ml26/blob/main/week8/adaboost.py): `week8/adaboost.py`
- [Gradient Boosting](https://github.com/kaspergl/ml26/blob/main/week8/gradientboost.py): `week8/gradientboost.py`
- [Boosting Solutions](https://github.com/kaspergl/ml26/tree/main/week8Solutions): `week8Solutions`

### Advanced Topics

- [Week 9 Theory](https://github.com/kaspergl/ml26/blob/main/week9/theory.ipynb): `week9/theory.ipynb`
- [Week 10 Exercises](https://github.com/kaspergl/ml26/blob/main/week10/Exercises.ipynb): `week10/Exercises.ipynb`
- [Week 12 Theory](https://github.com/kaspergl/ml26/blob/main/week12/theory.ipynb): `week12/theory.ipynb`
- [Skip-gram](https://github.com/kaspergl/ml26/blob/main/week13/skipgram.ipynb): `week13/skipgram.ipynb`
- [Hand-in Assignments](https://github.com/kaspergl/ml26/tree/main/handins): `handins`

### Other components

- **Learner**

## Connections

- Learner → Python & sklearn: studies
- Learner → Regression Stumps: practices
- Learner → Linear Regression: practices
- Learner → Nonlinear Models: practices
- Learner → Week 5 Theory: studies
- Learner → Week 6 Theory: studies
- Learner → Bias & Variance: studies
- Learner → AdaBoost: practices
- Learner → Gradient Boosting: practices
- Learner → Week 9 Theory: studies
- Learner → Week 10 Exercises: completes
- Learner → Week 12 Theory: studies
- Learner → Skip-gram: practices
- Learner → Hand-in Assignments: submits
- Learner → Week 1 Solutions: consults
- Learner → Stump Solutions: consults
- Learner → Regression Solutions: consults
- Learner → Nonlinear Solutions: consults
- Learner → Boosting Solutions: consults
