# datawhalechina/pumpkin-book architecture

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

- Interactive diagram: https://gitdiagram.com/datawhalechina/pumpkin-book
- Repository: https://github.com/datawhalechina/pumpkin-book

## Overview

Pumpkin Book is an open educational text that supplements the Xigua Book with explanations and derivations for difficult machine-learning formulas. Its main reader workflow is to follow Xigua as the primary text, then consult a relevant Pumpkin Book chapter when a formula is unclear. The chapter contents are grouped by their numbered directories because their specific topics are not shown in the available evidence; the README also documents errata feedback and supplementary learning resources.

Main entry points: [`docs/chapter1`](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter1) (Chapter 1), [`docs/chapter2`](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter2) (Chapter 2), [`docs/chapter3`](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter3) (Chapter 3), [`docs/chapter4`](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter4) (Chapter 4)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_early["Chapters 1–4"]
  node_ch1["Chapter 1"]
  node_ch2["Chapter 2"]
  node_ch3["Chapter 3"]
  node_ch4["Chapter 4"]
end

subgraph group_middle["Chapters 5–8"]
  node_ch5["Chapter 5"]
  node_ch6["Chapter 6"]
  node_ch7["Chapter 7"]
  node_ch8["Chapter 8"]
end

subgraph group_later["Chapters 9–12"]
  node_ch9["Chapter 9"]
  node_ch10["Chapter 10"]
  node_ch11["Chapter 11"]
  node_ch12["Chapter 12"]
end

subgraph group_final["Chapters 13–16"]
  node_ch13["Chapter 13"]
  node_ch14["Chapter 14"]
  node_ch15["Chapter 15"]
  node_ch16["Chapter 16"]
end

subgraph group_support["Reader support"]
  node_errata["Errata<br/>[errata.md]"]
  node_issues["GitHub Issues"]
  node_resources["Learning resources<br/>[README.md]"]
end

node_reader(("Reader"))
node_xigua["Xigua Book"]

node_reader -->|"studies first"| node_xigua
node_reader -->|"consults as needed"| node_ch1
node_reader -->|"consults as needed"| node_ch2
node_reader -->|"consults as needed"| node_ch3
node_reader -->|"consults as needed"| node_ch4
node_reader -->|"consults as needed"| node_ch5
node_reader -->|"consults as needed"| node_ch6
node_reader -->|"consults as needed"| node_ch7
node_reader -->|"consults as needed"| node_ch8
node_reader -->|"consults as needed"| node_ch9
node_reader -->|"consults as needed"| node_ch10
node_reader -->|"consults as needed"| node_ch11
node_reader -->|"consults as needed"| node_ch12
node_reader -->|"consults as needed"| node_ch13
node_reader -->|"consults as needed"| node_ch14
node_reader -->|"consults as needed"| node_ch15
node_reader -->|"consults as needed"| node_ch16
node_reader -->|"checks corrections"| node_errata
node_reader -->|"reports errors"| node_issues
node_reader -->|"uses supplements"| node_resources

click node_ch1 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter1"
click node_ch2 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter2"
click node_ch3 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter3"
click node_ch4 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter4"
click node_ch5 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter5"
click node_ch6 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter6"
click node_ch7 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter7"
click node_ch8 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter8"
click node_ch9 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter9"
click node_ch10 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter10"
click node_ch11 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter11"
click node_ch12 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter12"
click node_ch13 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter13"
click node_ch14 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter14"
click node_ch15 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter15"
click node_ch16 "https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter16"
click node_errata "https://github.com/datawhalechina/pumpkin-book/blob/master/docs/errata.md"
click node_resources "https://github.com/datawhalechina/pumpkin-book/blob/master/README.md"

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,node_ch2,node_ch3,node_ch4 toneBlue
class node_ch5,node_ch6,node_ch7,node_ch8 toneAmber
class node_ch9,node_ch10,node_ch11,node_ch12 toneMint
class node_ch13,node_ch14,node_ch15,node_ch16 toneRose
class node_errata,node_issues,node_resources,node_reader,node_xigua toneIndigo
```

## Components

### Chapters 1–4

- [Chapter 1](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter1): `docs/chapter1`
- [Chapter 2](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter2): `docs/chapter2`
- [Chapter 3](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter3): `docs/chapter3`
- [Chapter 4](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter4): `docs/chapter4`

### Chapters 5–8

- [Chapter 5](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter5): `docs/chapter5`
- [Chapter 6](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter6): `docs/chapter6`
- [Chapter 7](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter7): `docs/chapter7`
- [Chapter 8](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter8): `docs/chapter8`

### Chapters 9–12

- [Chapter 9](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter9): `docs/chapter9`
- [Chapter 10](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter10): `docs/chapter10`
- [Chapter 11](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter11): `docs/chapter11`
- [Chapter 12](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter12): `docs/chapter12`

### Chapters 13–16

- [Chapter 13](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter13): `docs/chapter13`
- [Chapter 14](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter14): `docs/chapter14`
- [Chapter 15](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter15): `docs/chapter15`
- [Chapter 16](https://github.com/datawhalechina/pumpkin-book/tree/master/docs/chapter16): `docs/chapter16`

### Reader support

- [Errata](https://github.com/datawhalechina/pumpkin-book/blob/master/docs/errata.md): `docs/errata.md`
- **GitHub Issues**
- [Learning resources](https://github.com/datawhalechina/pumpkin-book/blob/master/README.md): `README.md`

### Other components

- **Reader**
- **Xigua Book**

## Connections

- Reader → Xigua Book: studies first (evidence: `README.md`)
- Reader → Chapter 1: consults as needed (evidence: `README.md`)
- Reader → Chapter 2: consults as needed (evidence: `README.md`)
- Reader → Chapter 3: consults as needed (evidence: `README.md`)
- Reader → Chapter 4: consults as needed (evidence: `README.md`)
- Reader → Chapter 5: consults as needed (evidence: `README.md`)
- Reader → Chapter 6: consults as needed (evidence: `README.md`)
- Reader → Chapter 7: consults as needed (evidence: `README.md`)
- Reader → Chapter 8: consults as needed (evidence: `README.md`)
- Reader → Chapter 9: consults as needed (evidence: `README.md`)
- Reader → Chapter 10: consults as needed (evidence: `README.md`)
- Reader → Chapter 11: consults as needed (evidence: `README.md`)
- Reader → Chapter 12: consults as needed (evidence: `README.md`)
- Reader → Chapter 13: consults as needed (evidence: `README.md`)
- Reader → Chapter 14: consults as needed (evidence: `README.md`)
- Reader → Chapter 15: consults as needed (evidence: `README.md`)
- Reader → Chapter 16: consults as needed (evidence: `README.md`)
- Reader → Errata: checks corrections (evidence: `README.md`)
- Reader → GitHub Issues: reports errors (evidence: `README.md`)
- Reader → Learning resources: uses supplements (evidence: `README.md`)
