Skip to content

Commit

Permalink
Fix import errors introduces by sklearn 0.1.5
Browse files Browse the repository at this point in the history
With sklearn version 0.1.5 the check_pandas_support function has been
moved to util._optional_dependencies. This has been adapted in our code.
  • Loading branch information
agoscinski committed May 22, 2024
1 parent dd31493 commit 6617f6e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/skmatter/datasets/_base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
from os.path import dirname, join

import numpy as np
from sklearn.utils import Bunch, check_pandas_support

import skmatter


if skmatter.__version__ >= "0.1.5":
from utils._optional_dependencies import check_pandas_support
else:
from sklearn.utils import Bunch, check_pandas_support


def load_nice_dataset():
Expand Down

0 comments on commit 6617f6e

Please sign in to comment.