Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scikit learn split data set

import numpy as np
from sklearn.model_selection import train_test_split
X, y = np.arange(10).reshape((5, 2)), range(5)
X





list(y)
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged: #scikit #learn #split #data #set
ADD COMMENT
Topic
Name
7+8 =