package kaun

  1. Overview
  2. Docs

Module Training.HistorySource

Helper functions for accessing training history.

Sourcetype t = {
  1. train_loss : float list;
  2. train_metrics : (string * float list) list;
  3. val_loss : float list option;
  4. val_metrics : (string * float list) list option;
}
Sourceval final_train_loss : t -> float option

Get the final training loss value

Sourceval final_val_loss : t -> float option

Get the final validation loss value

Sourceval final_train_metrics : t -> (string * float) list

Get the final training metric values

Sourceval final_val_metrics : t -> (string * float) list

Get the final validation metric values

Sourceval best_train_loss : t -> float option

Get the best (minimum) training loss value

Sourceval best_val_loss : t -> float option

Get the best (minimum) validation loss value

Sourceval best_epoch : ?monitor:string -> t -> int option

Get the epoch with the best value for the monitored metric (default: "val_loss").