Question 8
Consider the following code:
import numpy as npfrom sklearn.model_selection import ShuffleSplit
X = np.array([[24, 13],[19, 18], [25, 18],[27, 23], [11, 25],[22, 12], [27, 16],[17, 25]])y = np.array([-1, 1, -1, 1, 1, -1, 1, -1])
ss = ShuffleSplit(n_splits=3, test_size=.25, random_state= 42)
for train_index, test_index in ss.split(X): print(train_index,test_index)Which of the following may be the correct output of the above code?: