def testIris_proba(self): random.seed(42) iris = datasets.load_iris() classifier = skflow.TensorFlowClassifier(n_classes=3) classifier.fit(iris.data, iris.target) score = log_loss(iris.target, classifier.predict_proba(iris.data)) self.assertLess(score, 0.8, "Failed with score = {0}".format(score))
def testIris(self): random.seed(42) iris = datasets.load_iris() classifier = skflow.TensorFlowClassifier(n_classes=3) classifier.fit(iris.data, iris.target) score = accuracy_score(classifier.predict(iris.data), iris.target) self.assertGreater(score, 0.5, "Failed with score = {0}".format(score))