Skip to content

Commit b6af8a5

Browse files
committed
sklearn 1.6.1 compatibility and restrict <1.7
1 parent ffdd4e1 commit b6af8a5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

hyperfast/hyperfast.py

+5
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ def _get_tags(self) -> dict:
146146
tags["allow_nan"] = True
147147
return tags
148148

149+
def __sklearn_tags__(self):
150+
tags = super().__sklearn_tags__()
151+
tags.input_tags.allow_nan = True
152+
return tags
153+
149154
def _preprocess_fitting_data(
150155
self,
151156
x: np.ndarray | pd.DataFrame,

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ python_requires = >=3.9
1919
install_requires =
2020
numpy>=1.26.2
2121
pandas>=2.1.3
22-
scikit-learn>=1.3.2
22+
scikit-learn>=1.3.2,<1.7
2323
torch>=1.10.2
2424
requests>=2.31.0

0 commit comments

Comments
 (0)