SKLearn – train_test_split
I am reading a list of pdf files and concatenating them as a unique string. Thereafter, I try to split the string into train_text and validation_text to train a LLM. Whey I use the train_test_split command from sklearn I get the following error:
ValueError: With n_samples=1, test_size=0.1 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters. I know it has something to do with the split by n method. But whats wrong? and how to solve it?