writing a train_test_split function with numpy

Published: 14/01/2019
writing a train_test_split function with numpy
Source: STACKOVERFLOW.COM

I am trying to write my own train test split function using numpy instead of using sklearn's train_test_split function. I am splitting the data into 70% training and 30% test. I am using the boston housing data set from sklearn. This is the shape of the data: housing_features.shape #(506,13) where 506 is sample size and it has 13 features. This is my code: city_data = datasets.load_boston() housi

Read more
Related news
Comment
FACEBOOK