Question 12
Which of the following could be a correct output from the following code?
import numpy as npfrom sklearn.model_selection import StratifiedKFoldX = np.random.rand(8, 2)y = np.array([0, 0, 0, 1, 1, 1, 1, 0])skf = StratifiedKFold(n_splits=2)
for train_index, test_index in skf.split(X, y): print("TRAIN:", train_index, "TEST:", test_index)