def testClassifier(classifier, path, func, skip = 1): testing, labels = readRaw(path, func, skipRate = skip) score = classifier.score(testing, labels) return score
def testClassifier(classifier, path, func, skip=1): testing, labels = readRaw(path, func, skipRate=skip) score = classifier.score(testing, labels) return score
def testClassifier(blobber, ngramClf, classifier, path, func, skip = 1): testing, labels = readRaw(path, func, skipRate = skip) matrix = [vectorize(blobber, comment, ngramClf) for comment in testing] score = classifier.score(matrix, labels) return score