How dev-luigi/neural-network-digits works
Neural Network from Scratch is an educational MNIST digit-recognition app with both a Tkinter interface and terminal commands. The principal workflow is to obtain and explore digit data, configure and train a NumPy network, evaluate it, then draw or inspect digits and experiment with the model. The GUI also offers a state-aware rules-and-search assistant, and the app supports English and Italian plus release updates. Edges rely on README statements or source-index references; unsampled implementations are represented cautiously.
Main entry points: window.py GUI window · cli.py Terminal commands · data.py MNIST data handling · network.py NumPy neural network
Components 25
App entry and interface
- Terminal commands
nn_digits/cli.py - GUI window
nn_digits/gui/window.py - Shared UI components
nn_digits/gui/base.py - Data tab
nn_digits/gui/tab_data.py - Training tab
nn_digits/gui/tab_training.py - Evaluation tab
nn_digits/gui/tab_evaluation.py - Draw and edit tab
nn_digits/gui/tab_draw.py - Network-inspection tab
nn_digits/gui/tab_inside.py
Data and learning
- MNIST data handling
nn_digits/neural_net/data.py - NumPy neural network
nn_digits/neural_net/network.py - Training engine
nn_digits/neural_net/training.py
Evaluation and exploration
- Charts and projections
nn_digits/neural_net/charts.py - Digit drawing board
nn_digits/gui/drawing_board.py - Model-editing lab
nn_digits/gui/lab.py
Assistant and language
- Assistant panel
nn_digits/gui/assistant.py - Assistant reasoning
nn_digits/assistant/brain.py - Concept knowledge
nn_digits/assistant/knowledge.py - Diagnostic rules
nn_digits/assistant/rules.py - TF-IDF search
nn_digits/assistant/search.py - English and Italian
nn_digits/i18n.py
Persistence and updates
- Local app data
nn_digits/neural_net/storage.py - Release updater
nn_digits/updater.py
Other components
- User
- MNIST download source
- Release services
Connections 42
- User → Terminal commands: runs commands
nn_digits/cli.py - User → GUI window: uses app
README.md - Terminal commands → MNIST data handling: downloads and loads
nn_digits/cli.py - Terminal commands → Training engine: runs training
nn_digits/cli.py - Terminal commands → NumPy neural network: uses model
nn_digits/cli.py - Terminal commands → Charts and projections: creates charts
nn_digits/cli.py - Terminal commands → Local app data: saves outputs
nn_digits/cli.py - Terminal commands → Release updater: checks updates
nn_digits/cli.py - GUI window → Data tab: creates tab
nn_digits/gui/window.py - GUI window → Training tab: creates tab
nn_digits/gui/window.py - GUI window → Evaluation tab: creates tab
nn_digits/gui/window.py - GUI window → Draw and edit tab: creates tab
nn_digits/gui/window.py - GUI window → Network-inspection tab: creates tab
nn_digits/gui/window.py - GUI window → Assistant panel: opens panel
nn_digits/gui/window.py - Data tab → MNIST data handling: downloads and explores
nn_digits/gui/tab_data.py - Data tab → Local app data: reads and writes
nn_digits/gui/tab_data.py - Training tab → Training engine: runs epochs
nn_digits/gui/tab_training.py - Training tab → NumPy neural network: builds and inspects
nn_digits/gui/tab_training.py - Training tab → MNIST data handling: loads photos
nn_digits/gui/tab_training.py - Training tab → Charts and projections: plots progress
nn_digits/gui/tab_training.py - Evaluation tab → NumPy neural network: predicts digits
nn_digits/gui/tab_evaluation.py - Evaluation tab → MNIST data handling: loads test photos
nn_digits/gui/tab_evaluation.py - Evaluation tab → Training engine: uses evaluation helpers
nn_digits/gui/tab_evaluation.py - Evaluation tab → Charts and projections: plots results
nn_digits/gui/tab_evaluation.py - Draw and edit tab → Digit drawing board: embeds board
nn_digits/gui/tab_draw.py - Draw and edit tab → Model-editing lab: embeds lab
nn_digits/gui/tab_draw.py - Draw and edit tab → NumPy neural network: uses model
nn_digits/gui/tab_draw.py - Draw and edit tab → Local app data: loads and saves model
nn_digits/gui/tab_draw.py - Network-inspection tab → NumPy neural network: computes layer values
nn_digits/gui/tab_inside.py - Network-inspection tab → Charts and projections: draws layer view
nn_digits/gui/tab_inside.py - Network-inspection tab → MNIST data handling: loads test photos
nn_digits/gui/tab_inside.py - Training engine → NumPy neural network: updates weights
nn_digits/neural_net/training.py - Training engine → MNIST data handling: uses prepared data
nn_digits/neural_net/training.py - MNIST data handling → MNIST download source: downloads dataset
nn_digits/neural_net/data.py - Assistant panel → Assistant reasoning: asks questions
nn_digits/gui/assistant.py - Assistant reasoning → Concept knowledge: uses concepts
nn_digits/assistant/brain.py - Assistant reasoning → Diagnostic rules: checks conditions
nn_digits/assistant/brain.py - Assistant reasoning → TF-IDF search: searches answers
nn_digits/assistant/brain.py - Assistant panel → Local app data: reads preferences
nn_digits/gui/assistant.py - English and Italian → Local app data: loads language setting
nn_digits/i18n.py - GUI window → Release updater: checks for updates
nn_digits/gui/window.py - Release updater → Release services: checks releases
nn_digits/updater.py