Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion openml/extensions/sklearn/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@
r"(?P<version>(\d+\.)?(\d+\.)?(\d+)?(dev)?[0-9]*))?$",
)

sctypes = np.sctypes if LooseVersion(np.__version__) < "2.0" else np.core.sctypes
SIMPLE_NUMPY_TYPES = [
nptype
for type_cat, nptypes in np.sctypes.items()
for type_cat, nptypes in sctypes.items()
for nptype in nptypes # type: ignore
if type_cat != "others"
]
Expand Down