def test_conversion_auto_algorithm(self):
        """Tests conversion of a scikit KNeighborsClassifier using the brute force algorithm."""
        test_n_neighbors = 42
        scikit_model = KNeighborsClassifier(
            algorithm="auto", n_neighbors=test_n_neighbors
        )
        scikit_model.fit(self.iris_X, self.iris_y)

        coreml_model = sklearn.convert(scikit_model, "single_input", "single_output")
        coreml_spec = coreml_model.get_spec()
        self.assertIsNotNone(coreml_spec)
Tests conversion of a scikit KNeighborsClassifier using the brute force algorithm.
coremltools/test/sklearn_tests/test_k_neighbors_classifier.py