scikit-learn 参数要怎么设置

 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,所以可以看出是导入数据存在问题。

看样子应该是你的数据集地址没写对吧,导致读取数据失败了,你的train_size应该是从数据集里面自动获取的还是设置的?