liveBook · Manning

Evaluation protocol

As explained in Deep Learning with R, Third Edition

An evaluation protocol is a prescribed procedure for estimating a model's performance on data representative of its intended use.

An evaluation protocol is a prescribed procedure for estimating how well a model will generalize to representative production data. Reliable evaluation guides modeling decisions and exposes the tension between optimization and generalization. section 5.2.3 section 6.2.2

Choose the protocol and data split according to the problem:

  • Use a hold-out validation set when sufficient data makes a single split reliable. section 6.2.2
  • Use K-fold cross-validation when too few samples make hold-out validation unreliable. section 6.2.2
  • Use iterated K-fold validation when little data requires especially accurate evaluation. section 6.2.2
  • Keep training and validation data representative, disjoint, and free from temporal or duplicate-data leakage. section 5.2.3

Avoiding a misleading split

For digit classification, splitting an array ordered by class can place classes 0–7 in training and 8–9 in testing. Randomly shuffle before splitting, unless the task predicts the future; then keep test data later in time than training data. section 5.2.3

How Deep Learning with R, Third Edition covers it

How deep it goes
Defines three validation strategies and major leakage risks, but does not provide implementation details.
Examples
Uses ordered digit classes, future prediction, and duplicated real-world samples to illustrate unreliable splits.
What you can do after
Evaluate generalization and choose a validation strategy suited to dataset size, ordering, and redundancy.
How it connects
Connects generalization, validation sets, cross-validation, overfitting, underfitting, and data leakage.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with R, Third Edition. The section links point to the parts of the book it draws on.