Feb-28-2018, 08:14 AM
Hello
I using the train_test_split function in the following code
Here is the output
I using the train_test_split function in the following code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# Load the data set for training and testing the logistic regression classifier dataset = pd.read_csv(DATA_SET_PATH) training_features = [ 'TVnews' , 'PID' , 'age' , 'educ' , 'income' ] target = 'vote' # Train , Test data split train_x, test_x, train_y, test_y = train_test_split(dataset[training_features], dataset[target], train_size = 0.7 ) print "train_x size :: " , train_x.shape print "train_y size :: " , train_y.shape print "test_x size :: " , test_x.shape print "test_y size :: " , test_y.shape |
Output:train_x size : (35, 4)
train_y size : (35L,)
test_x size : (15, 4)
test_y size : (15L,)
Question is what does L mean?