Skip to main content

The epoch-by-epoch record

Description

One row per model per epoch, with the loss, whatever metrics were asked for, how long the epoch took and the learning rate it ran at. Two columns arrive whether or not anybody asked:

Usage

training_history(object)

Arguments

object A platypus_fit().

Details

  • foreground - the share of the prediction that is not background. Not a measure of quality, because nothing is compared against the truth: it answers whether the model is still producing a segmentation at all. A model collapsing to background reports a plausible loss and, with include_background = TRUE, a Dice around 0.5.

  • val_<metric>_worst - the lowest any single case scored. The distribution is the finding and the mean is where a failure hides, so the number worth reading is in the table rather than only in summary() after the run.

Value

A data frame with one row per model per epoch.

Examples

library("rplatypus")

history <- training_history(fit)
head(history)

# For a detector the loss is broken into four terms on purpose: a run whose
# coordinate loss falls while its objectness loss does not is finding the right
# places and refusing to commit, and the reverse is confident nonsense.