python_for_microscopists icon indicating copy to clipboard operation
python_for_microscopists copied to clipboard

ValueError: With n_samples=0, test_size=0.1 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters.

Open mansi2421 opened this issue 3 years ago • 1 comments

I am getting this error while running the command from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(image_dataset, mask_dataset, test_size = 0.10, random_state = 0 someone please help me. I don't know where I am going wrong.

mansi2421 avatar Aug 18 '21 09:08 mansi2421

Same here, the groundtruth tif is returning all zeros array, is it the reason this error is being thrown?

maniappan avatar Jan 20 '22 02:01 maniappan