Commit b791502
authored
spec: add line-loss-training specification (#2868)
## New Specification: `line-loss-training`
Related to #2860
---
### specification.md
# line-loss-training: Training Loss Curve
## Description
A line plot showing training and validation loss curves over epochs
during neural network training. This visualization is essential for
monitoring model training, detecting overfitting (when validation loss
diverges from training loss), and determining optimal early stopping
points. The dual-curve display reveals the gap between training and
generalization performance.
## Applications
- Monitoring deep learning model training to detect overfitting or
underfitting
- Determining the optimal epoch for early stopping based on validation
loss plateau or increase
- Comparing training dynamics across different model architectures or
hyperparameter configurations
## Data
- `epoch` (numeric) - Training epoch number or iteration count
- `train_loss` (numeric) - Loss values on training data at each epoch
- `val_loss` (numeric) - Loss values on validation data at each epoch
- Size: 10-500 epochs typical, logged at each epoch or at regular
intervals
- Example: Training history from Keras/PyTorch containing epoch,
training loss, and validation loss
## Notes
- Use distinct colors for training (e.g., blue) and validation (e.g.,
orange) curves
- Include a legend clearly labeling each curve
- X-axis should start at epoch 1 (or 0) and extend to final epoch
- Y-axis label should specify the loss function used (e.g.,
Cross-Entropy Loss, MSE)
- Optionally mark the epoch with minimum validation loss to indicate
optimal stopping point
- Consider log scale for y-axis if loss spans multiple orders of
magnitude
---
**Next:** Add `approved` label to the issue to merge this PR.
---
:robot: *[spec-create
workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20608362596)*
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent e7c8fcd commit b791502
2 files changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments