Skip to main content

ClassificationEngine.evaluate

ClassificationEngine.evaluate(split='validation')

One row per model: the loss and every metric it was asked for.

A row rather than a number, and no _worst column, because a case here is one image - a split’s worst case would be 0 for any model that gets one image wrong, which is the shape of a number that carries no information.

The metric columns carry bare names and the split column says which split, which is the segmentation table’s shape rather than a new one: a row reading split: test beside a column called val_loss is a row that has to be explained. The trainer prefixes everything val_ because an epoch has two passes to tell apart; a table has a column for that instead.

loss_function sits beside loss for the reason it does there: a loss column is only comparable between models trained on the same one. architecture is read plainly rather than through .value - for this task it is a string, plain_cnn or the backbone’s name, and there is no enum to take a value off.

best_epoch is the epoch these very scores came from, which is what a reader of a row of scores takes it for, and it is None when they came from no single epoch - an average, or a run that selected nothing and therefore ended on its last epoch, which epochs_run already names. It was the lowest val_loss whatever the run was watching until pyplatypus#398, so a run monitored on anything else named one epoch and scored another. The epoch that was best by some other quantity is History.best(key), which is now the only way to ask that question.