如何使用sklearn将数据集分为训练和测试数据

时间:2019-03-11 13:55:12

标签: image-processing machine-learning scikit-learn deep-learning computer-vision

我使用的是at&t人脸数据集,一个主目录包含40个子目录,每个子目录包含特定人的不同图像。我创建了一个包含子目录名称的列表。我想使用数据来训练神经网络,所以我想将数据分为80%的训练和20%的测试。到目前为止,这是我所做的:

switchEditors.switchto( document.getElementById("ssquiz_question-tmce") );
if ( state == 'add') { 

}

此步骤后我应该如何进行?

0 个答案:

没有答案