Skip to content

Commit

Permalink
Add test for scikit-learn compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sidchaini committed Mar 18, 2024
1 parent 218a6bb commit 07083e3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ def test_init():
assert clf.scale is True


# Fix later
# # Test classifier estimator compatibility with scikit-learn
# def test_estimator_compatibility():
# from sklearn.utils.estimator_checks import check_estimator
from sklearn.utils.estimator_checks import check_estimator

# check_estimator(DistanceMetricClassifier())

def test_sklearn_compatibility():
check_estimator(DistanceMetricClassifier())


# Test fitting the classifier to a dataset
Expand Down

0 comments on commit 07083e3

Please sign in to comment.