Skip to content

Commit

Permalink
Run all tests and fix nmslib (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Jan 13, 2025
1 parent eaae17c commit 0342c23
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pynndescent = [
"numba>=0.52",
]
nmslib = [
"nmslib>=2.1.1,<3.0.0 ; python_version < '3.11'",
"nmslib-metabrainz>=2.1.1,<3.0.0",
]
annlibs = [
"sklearn-ann[annoy,faiss,pynndescent,nmslib]",
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion src/sklearn_ann/kneighbors/nmslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
from scipy.sparse import csr_matrix
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.utils import Tags, TransformerTags
from sklearn.utils import Tags, TargetTags, TransformerTags
from sklearn.utils.validation import validate_data

from ..utils import TransformerChecksMixin, check_metric
Expand Down Expand Up @@ -67,5 +67,6 @@ def transform(self, X):
def __sklearn_tags__(self) -> Tags:
return Tags(
estimator_type="transformer",
target_tags=TargetTags(required=False),
transformer_tags=TransformerTags(preserves_dtype=[np.float32]),
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0342c23

Please sign in to comment.