Skip to content

Commit b791502

Browse files
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

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# line-loss-training: Training Loss Curve
2+
3+
## Description
4+
5+
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.
6+
7+
## Applications
8+
9+
- Monitoring deep learning model training to detect overfitting or underfitting
10+
- Determining the optimal epoch for early stopping based on validation loss plateau or increase
11+
- Comparing training dynamics across different model architectures or hyperparameter configurations
12+
13+
## Data
14+
15+
- `epoch` (numeric) - Training epoch number or iteration count
16+
- `train_loss` (numeric) - Loss values on training data at each epoch
17+
- `val_loss` (numeric) - Loss values on validation data at each epoch
18+
- Size: 10-500 epochs typical, logged at each epoch or at regular intervals
19+
- Example: Training history from Keras/PyTorch containing epoch, training loss, and validation loss
20+
21+
## Notes
22+
23+
- Use distinct colors for training (e.g., blue) and validation (e.g., orange) curves
24+
- Include a legend clearly labeling each curve
25+
- X-axis should start at epoch 1 (or 0) and extend to final epoch
26+
- Y-axis label should specify the loss function used (e.g., Cross-Entropy Loss, MSE)
27+
- Optionally mark the epoch with minimum validation loss to indicate optimal stopping point
28+
- Consider log scale for y-axis if loss spans multiple orders of magnitude
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Specification-level metadata for line-loss-training
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: line-loss-training
5+
title: Training Loss Curve
6+
7+
# Specification tracking
8+
created: 2025-12-30T23:43:50Z
9+
updated: 2025-12-30T23:43:50Z
10+
issue: 2860
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/concepts/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- line
18+
- curve
19+
data_type:
20+
- numeric
21+
- timeseries
22+
domain:
23+
- machine-learning
24+
- data-science
25+
features:
26+
- multi
27+
- comparison
28+
- training-monitoring

0 commit comments

Comments
 (0)