How tejassxo/digitvision_ml works
DigitVision AI is a handwritten-digit recognition platform whose interactive workflow accepts a drawing, serves inference through FastAPI, and returns a quality audit, calibrated top-K prediction, and visual explanations. Offline, the experiment runner trains and compares deep and classical models, evaluates errors and distribution shift, and produces scientific figures and results. Dataset handling and canonical preprocessing support the model lifecycle; the dashboard and synchronized presentation tools expose results. Some subsystem connections are documented capabilities rather than inspected call sites, so those links are marked unverified.
Main entry points: run_experiments.py Experiment runner · forensics.py Forensics pipeline · server.py FastAPI server · deep.py Deep models
Components 20
Interactive inference
- Drawing dashboard
src/app/static - FastAPI server
src/app/server.py
Prediction intelligence
- Forensics pipeline
src/intelligence/forensics.py - Canonical preprocessing
src/preprocessing/canonical.py - Quality gate
src/intelligence/quality.py - Confidence analysis
src/intelligence/confidence.py - Grad-CAM
src/xai/gradcam.py - Pixel saliency
src/xai/saliency.py
Models and data
- Deep models
src/models/deep.py - Classical models
src/models/classical.py - MNIST partitions
src/data/dataset.py
Evaluation and research
- Experiment runner
experiments/run_experiments.py - Model metrics
src/evaluation/metrics.py - Error analysis
src/evaluation/error_analysis.py - Shift benchmarks
src/evaluation/robustness.py - Scientific figures
src/evaluation/visualization.py
Results and presentation
- Experiment results
experiments/metrics - Dashboard assets
src/app/static - Presentation decks
src/presentation
Other components
- DigitVision user
Connections 22
- DigitVision user → Drawing dashboard: draws input
- Drawing dashboard → FastAPI server: requests inference
- FastAPI server → Forensics pipeline: runs pipeline
src/app/server.py - FastAPI server → Experiment results: reads results
src/app/server.py - FastAPI server → Dashboard assets: serves assets
src/app/server.py - Forensics pipeline → Canonical preprocessing: preprocesses
src/intelligence/forensics.py - Forensics pipeline → Quality gate: audits input
src/intelligence/forensics.py - Forensics pipeline → Confidence analysis: analyzes probabilities
src/intelligence/forensics.py - Forensics pipeline → Deep models: requests prediction
src/intelligence/forensics.py - Forensics pipeline → Classical models: requests prediction
src/intelligence/forensics.py - Forensics pipeline → Grad-CAM: generates attribution
src/intelligence/forensics.py - Forensics pipeline → Pixel saliency: generates attribution
src/intelligence/forensics.py - Experiment runner → Deep models: trains and evaluates
experiments/run_experiments.py - Experiment runner → Classical models: trains and evaluates
experiments/run_experiments.py - Experiment runner → Model metrics: evaluates models
experiments/run_experiments.py - Experiment runner → Error analysis: mines failures
experiments/run_experiments.py - Experiment runner → Shift benchmarks: benchmarks shifts
experiments/run_experiments.py - Experiment runner → Scientific figures: generates figures
experiments/run_experiments.py - Experiment runner → Experiment results: writes results
experiments/run_experiments.py - MNIST partitions → Deep models: supplies training data
- MNIST partitions → Classical models: supplies training data
- Experiment runner → Presentation decks: supports synchronized decks