摘要: 人脸识别 阅读全文
posted @ 2017-09-01 20:52 WangLC 阅读(1616) 评论(0) 推荐(0)
摘要: import csv import random import math import operator def loadDataset(filename, split, trainingSet = [], testSet = []): with open(filename, 'rb') as csvfile:#逗号分隔符的文件类型 lines = csv.reade... 阅读全文
posted @ 2017-09-01 14:25 WangLC 阅读(213) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- from sklearn.feature_extraction import DictVectorizer import csv from sklearn import tree from sklearn import preprocessing from sklearn.externals.six im... 阅读全文
posted @ 2017-09-01 12:21 WangLC 阅读(430) 评论(0) 推荐(0)