Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix: mlens.external.sklearn.type_of_target.py #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 5 additions & 1 deletion mlens/externals/sklearn/type_of_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
# License: BSD 3 clause

from __future__ import division
from collections import Sequence
from sys import version_info
if (version_info.major == 3) and (version_info.minor == 10):
Copy link

@lolamathematician lolamathematician Sep 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could replace line 11 with

if (version_info.major == 3) and (version_info.minor >= 10):

from collections.abc import Sequence
else:
from collections import Sequence


from scipy.sparse import issparse
Expand Down