Question:medium

Consider that you are training a classifier for a 10-class classification problem. Each input is represented as a 512-dimensional vector. There are 1000 samples, out of which the first 100 will be used for testing.
Let Leave-One-Out-Cross-Validation (LOOCV) be used for selection of the classifier model before testing.
Which of the following options is the correct number of validation splits that will be generated?

Show Hint

LOOCV always generates one split per sample in its working pool; here that pool excludes the 100 test samples, leaving 900.
Updated On: Jul 22, 2026
  • 10
  • 512
  • 900
  • 1000
Show Solution

The Correct Option is C

Solution and Explanation

The trick in this question is separating what actually feeds into LOOCV from numbers that are just there to distract, like the class count and the feature dimension.

Start with what LOOCV means. Leave-One-Out-Cross-Validation takes whatever pool of samples it is given, call its size $m$, and builds exactly $m$ train/validation splits, one for every sample in that pool. In split $i$, sample $i$ becomes the single validation point and the remaining $m-1$ samples form the training set. So the number of splits is always just $m$, the size of the working pool, nothing more complicated than that.

Now figure out what $m$ actually is here. The dataset has 1000 samples total. The question says the first 100 are set aside for testing, and model selection (the step that uses LOOCV) happens before testing even starts. That phrasing matters: it tells us the 100 test samples never enter the LOOCV process at all, they sit untouched until the very end. So the pool LOOCV actually works with is $1000 - 100 = 900$ samples.

Plugging $m = 900$ into the rule from above, LOOCV generates 900 splits.

Let's summarize why the distractors don't fit:

  • 10 is the number of output classes, this affects the classifier's output layer, not how cross-validation partitions data.
  • 512 is the dimensionality of each input vector, also irrelevant to how many samples get held out one at a time.
  • 1000 would only be right if the test samples were included in the LOOCV pool, but the question explicitly excludes them.

So the correct answer is 900, option (C).

\[ \boxed{900} \]
Was this answer helpful?
0