Machine Learning Basics

When 5-fold cross-validation (k-fold cross-validation with k = 5) is performed on 1000 data points, how many data points are used for each round of training?

  1. A200
  2. B800
  3. C1000
Show answer and explanation

Answer: B. 800

In k-fold cross-validation, the data is divided into k groups; one is used for evaluation and the remaining k − 1 for training. This is repeated k times, rotating the evaluation group, and the average of the k evaluations is taken as the model's performance. With 5 folds each group has 1000 ÷ 5 = 200 points, so each round trains on 200 × 4 = 800 points, and training is done 5 times. Every data point is used for evaluation exactly once, so performance can be estimated stably even with little data.

  • A. This is the number of points used for each evaluation.
  • B. Correct. Training uses 4 of the 5 groups, 200 × 4 = 800 points.
  • C. Training on all the data leaves no data for evaluation.
Practice this topic Back to topic

Related calculators

Books on Machine Learning Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Machine Learning Basics questions

  1. Which of the following is seen when overfitting is occurring?
  2. Which of the following is correct when a model's error is considered in terms of bias and variance?
  3. Which of the following correctly describes regularization and related methods for reducing overfitting?
  4. Which of the following steps in building a machine learning model causes data leakage (information from the evaluation data slipping into training)?
  5. A two-class classification model was evaluated on 200 test samples, and its confusion matrix shows 45 true positives (TP), 5 false positives (FP), 45 false negatives (FN) and 105 true negatives (TN). Which pair of precision and recall is correct?