Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/o/r/Orange-2.7.2/Orange/testing/unit/tests/test_knn.py   Orange(Download)
    def test_learner_on(self, dataset):
        testing.LearnerTestCase.test_learner_on(self, dataset)
        instance = dataset.random_instance()
        self.assertEqual(len(self.classifier.find_nearest(3, instance)), 3)