# ageron/handson-ml2 architecture

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

- Interactive diagram: https://gitdiagram.com/ageron/handson-ml2
- Repository: https://github.com/ageron/handson-ml2

## Overview

This repository is an educational collection for the second edition of *Hands-on Machine Learning*. The learner starts at the notebook index, then works through chapter notebooks covering ML foundations, deep learning, and deployment-scale topics; the intended result is familiarity with the methods and examples. Dataset files support hands-on work, but their specific notebook consumers are not established by the excerpts. Notebook-to-notebook links are therefore omitted rather than inferred as a pipeline.

Main entry points: [`01_the_machine_learning_landscape.ipynb`](https://github.com/ageron/handson-ml2/blob/master/01_the_machine_learning_landscape.ipynb) (Chapters 1–9), [`02_end_to_end_machine_learning_project.ipynb`](https://github.com/ageron/handson-ml2/blob/master/02_end_to_end_machine_learning_project.ipynb) (End-to-end project), [`03_classification.ipynb`](https://github.com/ageron/handson-ml2/blob/master/03_classification.ipynb) (Classification), [`04_training_linear_models.ipynb`](https://github.com/ageron/handson-ml2/blob/master/04_training_linear_models.ipynb) (Linear models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["ML foundations"]
  node_ch1_9["Chapters 1–9"]
  node_ch2["End-to-end project"]
  node_ch3["Classification"]
  node_ch4["Linear models"]
  node_ch5["SVMs"]
  node_ch6["Decision trees"]
  node_ch7["Ensembles"]
  node_ch8["Dimensionality reduction"]
  node_ch9["Unsupervised learning"]
end

subgraph group_deep_learning["Deep learning"]
  node_ch10["Keras neural nets"]
  node_ch11["Deep network training"]
  node_ch12["Custom TensorFlow"]
  node_ch13["Data preprocessing"]
  node_ch14["Computer vision"]
  node_ch15["Sequence models"]
  node_ch16["NLP and attention"]
  node_ch17["Autoencoders and GANs"]
end

subgraph group_applications["Advanced applications"]
  node_ch18["Reinforcement learning"]
  node_ch19["Scale and deployment"]
end

subgraph group_learning_data["Learning resources"]
  node_index["Notebook index<br/>[index.ipynb]"]
  node_datasets[("Example datasets")]
end

node_learner(("Learner"))

node_learner -->|"opens"| node_index
node_learner -->|"studies"| node_ch1_9
node_learner -->|"studies"| node_ch2
node_learner -->|"studies"| node_ch3
node_learner -->|"studies"| node_ch4
node_learner -->|"studies"| node_ch5
node_learner -->|"studies"| node_ch6
node_learner -->|"studies"| node_ch7
node_learner -->|"studies"| node_ch8
node_learner -->|"studies"| node_ch9
node_learner -->|"studies"| node_ch10
node_learner -->|"studies"| node_ch11
node_learner -->|"studies"| node_ch12
node_learner -->|"studies"| node_ch13
node_learner -->|"studies"| node_ch14
node_learner -->|"studies"| node_ch15
node_learner -->|"studies"| node_ch16
node_learner -->|"studies"| node_ch17
node_learner -->|"studies"| node_ch18
node_learner -->|"studies"| node_ch19

click node_index "https://github.com/ageron/handson-ml2/blob/master/index.ipynb"
click node_ch1_9 "https://github.com/ageron/handson-ml2/blob/master/01_the_machine_learning_landscape.ipynb"
click node_ch2 "https://github.com/ageron/handson-ml2/blob/master/02_end_to_end_machine_learning_project.ipynb"
click node_ch3 "https://github.com/ageron/handson-ml2/blob/master/03_classification.ipynb"
click node_ch4 "https://github.com/ageron/handson-ml2/blob/master/04_training_linear_models.ipynb"
click node_ch5 "https://github.com/ageron/handson-ml2/blob/master/05_support_vector_machines.ipynb"
click node_ch6 "https://github.com/ageron/handson-ml2/blob/master/06_decision_trees.ipynb"
click node_ch7 "https://github.com/ageron/handson-ml2/blob/master/07_ensemble_learning_and_random_forests.ipynb"
click node_ch8 "https://github.com/ageron/handson-ml2/blob/master/08_dimensionality_reduction.ipynb"
click node_ch9 "https://github.com/ageron/handson-ml2/blob/master/09_unsupervised_learning.ipynb"
click node_ch10 "https://github.com/ageron/handson-ml2/blob/master/10_neural_nets_with_keras.ipynb"
click node_ch11 "https://github.com/ageron/handson-ml2/blob/master/11_training_deep_neural_networks.ipynb"
click node_ch12 "https://github.com/ageron/handson-ml2/blob/master/12_custom_models_and_training_with_tensorflow.ipynb"
click node_ch13 "https://github.com/ageron/handson-ml2/blob/master/13_loading_and_preprocessing_data.ipynb"
click node_ch14 "https://github.com/ageron/handson-ml2/blob/master/14_deep_computer_vision_with_cnns.ipynb"
click node_ch15 "https://github.com/ageron/handson-ml2/blob/master/15_processing_sequences_using_rnns_and_cnns.ipynb"
click node_ch16 "https://github.com/ageron/handson-ml2/blob/master/16_nlp_with_rnns_and_attention.ipynb"
click node_ch17 "https://github.com/ageron/handson-ml2/blob/master/17_autoencoders_and_gans.ipynb"
click node_ch18 "https://github.com/ageron/handson-ml2/blob/master/18_reinforcement_learning.ipynb"
click node_ch19 "https://github.com/ageron/handson-ml2/blob/master/19_training_and_deploying_at_scale.ipynb"
click node_datasets "https://github.com/ageron/handson-ml2/tree/master/datasets"

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_ch1_9,node_ch2,node_ch3,node_ch4,node_ch5,node_ch6,node_ch7,node_ch8,node_ch9 toneBlue
class node_ch10,node_ch11,node_ch12,node_ch13,node_ch14,node_ch15,node_ch16,node_ch17 toneAmber
class node_ch18,node_ch19 toneMint
class node_index,node_datasets toneRose
class node_learner toneIndigo
```

## Components

### ML foundations

- [Chapters 1–9](https://github.com/ageron/handson-ml2/blob/master/01_the_machine_learning_landscape.ipynb): `01_the_machine_learning_landscape.ipynb`
- [End-to-end project](https://github.com/ageron/handson-ml2/blob/master/02_end_to_end_machine_learning_project.ipynb): `02_end_to_end_machine_learning_project.ipynb`
- [Classification](https://github.com/ageron/handson-ml2/blob/master/03_classification.ipynb): `03_classification.ipynb`
- [Linear models](https://github.com/ageron/handson-ml2/blob/master/04_training_linear_models.ipynb): `04_training_linear_models.ipynb`
- [SVMs](https://github.com/ageron/handson-ml2/blob/master/05_support_vector_machines.ipynb): `05_support_vector_machines.ipynb`
- [Decision trees](https://github.com/ageron/handson-ml2/blob/master/06_decision_trees.ipynb): `06_decision_trees.ipynb`
- [Ensembles](https://github.com/ageron/handson-ml2/blob/master/07_ensemble_learning_and_random_forests.ipynb): `07_ensemble_learning_and_random_forests.ipynb`
- [Dimensionality reduction](https://github.com/ageron/handson-ml2/blob/master/08_dimensionality_reduction.ipynb): `08_dimensionality_reduction.ipynb`
- [Unsupervised learning](https://github.com/ageron/handson-ml2/blob/master/09_unsupervised_learning.ipynb): `09_unsupervised_learning.ipynb`

### Deep learning

- [Keras neural nets](https://github.com/ageron/handson-ml2/blob/master/10_neural_nets_with_keras.ipynb): `10_neural_nets_with_keras.ipynb`
- [Deep network training](https://github.com/ageron/handson-ml2/blob/master/11_training_deep_neural_networks.ipynb): `11_training_deep_neural_networks.ipynb`
- [Custom TensorFlow](https://github.com/ageron/handson-ml2/blob/master/12_custom_models_and_training_with_tensorflow.ipynb): `12_custom_models_and_training_with_tensorflow.ipynb`
- [Data preprocessing](https://github.com/ageron/handson-ml2/blob/master/13_loading_and_preprocessing_data.ipynb): `13_loading_and_preprocessing_data.ipynb`
- [Computer vision](https://github.com/ageron/handson-ml2/blob/master/14_deep_computer_vision_with_cnns.ipynb): `14_deep_computer_vision_with_cnns.ipynb`
- [Sequence models](https://github.com/ageron/handson-ml2/blob/master/15_processing_sequences_using_rnns_and_cnns.ipynb): `15_processing_sequences_using_rnns_and_cnns.ipynb`
- [NLP and attention](https://github.com/ageron/handson-ml2/blob/master/16_nlp_with_rnns_and_attention.ipynb): `16_nlp_with_rnns_and_attention.ipynb`
- [Autoencoders and GANs](https://github.com/ageron/handson-ml2/blob/master/17_autoencoders_and_gans.ipynb): `17_autoencoders_and_gans.ipynb`

### Advanced applications

- [Reinforcement learning](https://github.com/ageron/handson-ml2/blob/master/18_reinforcement_learning.ipynb): `18_reinforcement_learning.ipynb`
- [Scale and deployment](https://github.com/ageron/handson-ml2/blob/master/19_training_and_deploying_at_scale.ipynb): `19_training_and_deploying_at_scale.ipynb`

### Learning resources

- [Notebook index](https://github.com/ageron/handson-ml2/blob/master/index.ipynb): `index.ipynb`
- [Example datasets](https://github.com/ageron/handson-ml2/tree/master/datasets): `datasets`

### Other components

- **Learner**

## Connections

- Learner → Notebook index: opens (evidence: `README.md`)
- Learner → Chapters 1–9: studies (evidence: `README.md`)
- Learner → End-to-end project: studies (evidence: `README.md`)
- Learner → Classification: studies (evidence: `README.md`)
- Learner → Linear models: studies (evidence: `README.md`)
- Learner → SVMs: studies (evidence: `README.md`)
- Learner → Decision trees: studies (evidence: `README.md`)
- Learner → Ensembles: studies (evidence: `README.md`)
- Learner → Dimensionality reduction: studies (evidence: `README.md`)
- Learner → Unsupervised learning: studies (evidence: `README.md`)
- Learner → Keras neural nets: studies (evidence: `README.md`)
- Learner → Deep network training: studies (evidence: `README.md`)
- Learner → Custom TensorFlow: studies (evidence: `README.md`)
- Learner → Data preprocessing: studies (evidence: `README.md`)
- Learner → Computer vision: studies (evidence: `README.md`)
- Learner → Sequence models: studies (evidence: `README.md`)
- Learner → NLP and attention: studies (evidence: `README.md`)
- Learner → Autoencoders and GANs: studies (evidence: `README.md`)
- Learner → Reinforcement learning: studies (evidence: `README.md`)
- Learner → Scale and deployment: studies (evidence: `README.md`)
