# mjunhaochen/ai-classification architecture

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

- Interactive diagram: https://gitdiagram.com/mjunhaochen/ai-classification
- Repository: https://github.com/mjunhaochen/ai-classification

## Overview

This repository is a small collection of neural-network classification notebooks, not a reusable application or service. Its two documented workflows classify handwritten digits and bean-leaf conditions; the results presentation is a separate way to review example outcomes. The README describes notebook use and reported results, but no notebook source was available to verify internal model stages, data sources, or how results connect to the presentation.

Main entry points: [`NN_MNIST.ipynb`](https://github.com/mjunhaochen/ai-classification/blob/main/NN_MNIST.ipynb) (MNIST classifier), [`NN_Beans.ipynb`](https://github.com/mjunhaochen/ai-classification/blob/main/NN_Beans.ipynb) (Bean classifier), [`AI-results.pdf`](https://github.com/mjunhaochen/ai-classification/blob/main/AI-results.pdf) (Example results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_notebooks["Classification notebooks"]
  node_mnist["MNIST classifier<br/>[NN_MNIST.ipynb]"]
  node_beans["Bean classifier<br/>[NN_Beans.ipynb]"]
end

subgraph group_results["Example results"]
  node_digits["Digit predictions"]
  node_leaf_conditions["Leaf-condition predictions"]
  node_presentation["Example results<br/>[AI-results.pdf]"]
end

node_user(("Notebook user"))

node_user -->|"runs"| node_mnist
node_user -->|"runs"| node_beans
node_mnist -->|"classifies"| node_digits
node_beans -->|"classifies"| node_leaf_conditions
node_user -->|"views"| node_presentation

click node_mnist "https://github.com/mjunhaochen/ai-classification/blob/main/NN_MNIST.ipynb"
click node_beans "https://github.com/mjunhaochen/ai-classification/blob/main/NN_Beans.ipynb"
click node_presentation "https://github.com/mjunhaochen/ai-classification/blob/main/AI-results.pdf"

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_mnist,node_beans,node_user toneBlue
class node_digits,node_leaf_conditions,node_presentation toneAmber
```

## Components

### Classification notebooks

- [MNIST classifier](https://github.com/mjunhaochen/ai-classification/blob/main/NN_MNIST.ipynb): `NN_MNIST.ipynb`
- [Bean classifier](https://github.com/mjunhaochen/ai-classification/blob/main/NN_Beans.ipynb): `NN_Beans.ipynb`

### Example results

- **Digit predictions**
- **Leaf-condition predictions**
- [Example results](https://github.com/mjunhaochen/ai-classification/blob/main/AI-results.pdf): `AI-results.pdf`

### Other components

- **Notebook user**

## Connections

- Notebook user → MNIST classifier: runs
- Notebook user → Bean classifier: runs
- MNIST classifier → Digit predictions: classifies
- Bean classifier → Leaf-condition predictions: classifies
- Notebook user → Example results: views
