I'm trying to understand Cross-validation.
Very simply if I want to test train split I load the following yet theres no mention of importing a dataset ?
Very simply if I want to test train split I load the following yet theres no mention of importing a dataset ?
>>> import numpy as np >>> from sklearn.model_selection import train_test_split >>> from sklearn import datasets >>> from sklearn import svmSo if I have a large dataset in CSV format how do I import it and split it, I don't understand ((150, 4), (150,)) in the below are these rows or columns.
>>> iris = datasets.load_iris() >>> iris.data.shape, iris.target.shape ((150, 4), (150,))