public class TrainingHistory
Training and optional validation metrics after each completed epoch of one fit call. Training metrics describe predictions made as parameters evolved within the epoch; validation metrics use the fixed parameters at the end of that epoch. Plot-ready metric series are extracted together on first access and cached until another epoch is recorded. Repeated reads return the same immutable snapshots without traversing the history again.
print(history.epochs[0].loss)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | epochNumbers | Immutable one-based epoch numbers as Double values, suitable for chart axes. |
| public readonly property | epochsepochs as IList<Evaluation> |
Immutable snapshot of completed epoch metrics, cached until recording. |
| public readonly property | trainingAccuracy | Immutable training accuracy for each completed epoch, as fractions [0, 1]. |
| public readonly property | trainingLoss | Immutable sample-weighted training loss for each completed epoch. |
| public readonly property | validationAccuracy | Immutable validation accuracy, as fractions [0, 1]. |
| public readonly property | validationEpochsvalidationEpochs as IList<Evaluation> |
Immutable snapshot of validation metrics, evaluated with fixed parameters after each epoch and dropout disabled. |
| public readonly property | validationLoss | Immutable sample-weighted validation loss, aligned with epochNumbers when validation is enabled. |