Skip to main content
. 2014 Feb 26;33(2):105–115. doi: 10.14366/usg.13023

Figure 4. The example of k-fold cross validation.

Figure 4.

The dataset is divided into k subsets. One set is used for testing (black boxes), and the remaining k- 1 subsets (empty boxes) are used for training. Then, the entire dataset is again divided into k subsets, which are different from the abovementioned k subsets. Then, training and testing are carried out. These steps are repeated 20 times.