Opening the paper…
Machine Learning Practice, Quiz 1
Consider the following code snippet:
from sklearn.datasets import load_irisfrom sklearn.model_selection import train_test_splitX, y = load_iris(return_X_y = True)The size of X and y is (150, 4) and (150,) respectively.
Which of the following option(s) split X and y into training and test data such that test data has 30 samples?
Consider the following code snippet: from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split X, y = load_iris(return_X_y = True) The size of X and y is (150, 4) and (150,) respectively. Which of the following option(s) split X and y into training and test data such that test data has 30 samples? Figure from the original question paper Code block with seaborn box plot and swarm plot of the Iris dataset features (Figure 1)