I'm trying to split the data I am working with into training and testing sets but I get the error that n_samples = 0 when I use the train_test_split function.
Here's my code:
X_train, X_test, y_train, y_test = model_selection.train_test_split(summary, labels, test_size=0.35)
summary and labels are lists and after converting them to arrays this is the shape I get:
(1248,)
(1248,)
They both have 1248 values. Can someone tell me why its not working? Thanks
Error Message:
With n_samples=0, test_size=0.35 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters