Test error (source code)

= Test error

Test error is the average loss on an independent test set and estimates prediction error when the test set has not influenced model fitting or selection.