ValueError: With n_samples=0, test_size=0.3 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters.
自己看别人的人脸识别项目做的
现在好懵逼,也不知道错在哪里了
求一个大佬来帮帮我
收起
根据train_test_split的源代码:
def train_test_split(*arrays, test_size=None, train_size=None, random_state=None, shuffle=True, stratify=None): arrays = indexable(*arrays) n_samples = _num_samples(arrays[0])
而在您的错误提示中n_samples为0,所以可以看出是导入数据存在问题。
报告相同问题?