Abstract duplicate validation code into a function that computes validation error over a nonempty validation subset.
Of course, the size of the validation subset may be equal to the size of the entire validation set, in which case a full validation is computed.
Abstract duplicate validation code into a function that computes validation error over a nonempty validation subset. Of course, the size of the validation subset may be equal to the size of the entire validation set, in which case a full validation is computed.