How nafeytauheed-cyber/losslearning works
LossLearning is an experimental PyTorch classification framework for learning with noisy labels. The user-facing path is to fit the estimator on labeled data, which builds an encoder/head model and trains it with an indexed trainer; adaptive runs use teacher/reference-bank evidence to adjust generalized cross-entropy, then expose predictions and scores. A separate experiment runner evaluates synthetic, image, and CIFAR-10N settings and produces analysis artifacts. The graph reflects the excerpts and README; some internal calls in unsampled code are not asserted.
Main entry points: training.py Indexed trainer · estimator.py Estimator API · experiments.py Benchmark runner · validation.py Influence validation
Components 16
Classifier API
- Estimator API
src/losslearning/estimator.py
Training and adaptation
- Encoder and heads
src/losslearning/models.py - Indexed trainer
src/losslearning/training.py - Teacher and bank
src/losslearning/adaptation.py - Influence evidence
src/losslearning/adaptation.py - Adaptive controller
src/losslearning/adaptation.py - Robust losses
src/losslearning/losses.py
Experiment workflows
- Synthetic data
src/losslearning/data.py - Benchmark runner
src/losslearning/experiments.py - Image pilots
src/losslearning/images.py - CIFAR-10N pilot
src/losslearning/cifar10n.py
Validation and reporting
- Influence validation
src/losslearning/validation.py - Diagnostic figures
src/losslearning/visualization.py - Release reports
experiments/release_report.py - Run artifacts
results/release
Other components
- Model user
Connections 21
- Model user → Estimator API: fits and predicts
README.md - Estimator API → Encoder and heads: constructs
src/losslearning/estimator.py - Estimator API → Indexed trainer: trains through
src/losslearning/estimator.py - Indexed trainer → Teacher and bank: updates teacher and bank
src/losslearning/training.py - Indexed trainer → Influence evidence: estimates evidence
src/losslearning/training.py - Indexed trainer → Adaptive controller: sets adaptive q
src/losslearning/training.py - Indexed trainer → Robust losses: computes loss
src/losslearning/training.py - Benchmark runner → Synthetic data: creates splits
src/losslearning/experiments.py - Benchmark runner → Estimator API: runs methods
src/losslearning/experiments.py - Benchmark runner → Image pilots: dispatches image pilots
src/losslearning/experiments.py - Benchmark runner → CIFAR-10N pilot: dispatches CIFAR-10N
src/losslearning/experiments.py - Image pilots → Encoder and heads: constructs
src/losslearning/images.py - Image pilots → Indexed trainer: trains through
src/losslearning/images.py - CIFAR-10N pilot → Indexed trainer: trains through
src/losslearning/cifar10n.py - Influence validation → Influence evidence: checks estimator
src/losslearning/validation.py - Influence validation → Synthetic data: uses geometry data
src/losslearning/validation.py - Influence validation → Estimator API: runs stale diagnostic
src/losslearning/validation.py - Benchmark runner → Diagnostic figures: generates figures
src/losslearning/experiments.py - Diagnostic figures → Estimator API: queries predictions
src/losslearning/visualization.py - Release reports → Diagnostic figures: imports plotting
experiments/release_report.py - Release reports → Run artifacts: packages results
experiments/release_report.py