How anfal-04/mnist-digit-classifier works
This is a Streamlit MNIST digit-classifier app. A user draws on a canvas, the app preprocesses the image and classifies it as “2” or “not a 2,” then displays the prediction and confidence. The app also loads or trains a binary logistic-regression model and presents sample MNIST images. Relationships are limited to those shown in the App.py excerpts; the notebook’s role is not established by the available evidence.
Main entry points: App.py Streamlit app · model.pkl Saved model
Components 11
User interface
- Streamlit app
App.py - Drawing canvas
App.py - MNIST sample gallery
App.py
Model and data
- MNIST OpenML
- Model loading and training
App.py - Logistic regression
App.py - Saved model
model.pkl
Prediction and display
- Canvas preprocessing
App.py - Binary classification
App.py - Prediction and confidence
App.py
Other components
- User
Connections 12
- User → Streamlit app: uses
App.py - Streamlit app → Drawing canvas: renders
App.py - Streamlit app → Model loading and training: loads or trains
App.py - Model loading and training → Saved model: loads or saves
App.py - Model loading and training → MNIST OpenML: fetches data
App.py - Model loading and training → Logistic regression: fits
App.py - Streamlit app → Canvas preprocessing: preprocesses drawing
App.py - Canvas preprocessing → Binary classification: provides vector
App.py - Streamlit app → Binary classification: predicts
App.py - Binary classification → Prediction and confidence: supplies prediction
App.py - Streamlit app → MNIST sample gallery: loads samples
App.py - MNIST sample gallery → MNIST OpenML: fetches images
App.py