Feb-28-2018, 08:14 AM
Hello
I using the train_test_split function in the following code
I using the train_test_split function in the following code
# 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.shapeHere is the output
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?