Я попытался импортировать данные (как показано ниже) в Google Colab
from imblearn.datasets import make_imbalance
Но я получил следующий вывод:
/usr/local/lib/python3.6/dist-packages/sklearn/externals/six.py:31: FutureWarning: The module is deprecated in version 0.21 and will be removed in version 0.23 since we've dropped support for Python 2.7. Please rely on the official version of six (https://pypi.org/project/six/).
"(https://pypi.org/project/six/).", FutureWarning)
/usr/local/lib/python3.6/dist-packages/sklearn/utils/deprecation.py:144: FutureWarning: The sklearn.neighbors.base module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.neighbors. Anything that cannot be imported from sklearn.neighbors is now part of the private API.
warnings.warn(message, FutureWarning)
/usr/local/lib/python3.6/dist-packages/sklearn/utils/deprecation.py:144: FutureWarning: The sklearn.datasets.base module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.datasets. Anything that cannot be imported from sklearn.datasets is now part of the private API.
warnings.warn(message, FutureWarning)
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-5e38d91da46a> in <module>()
----> 1 from imblearn.datasets import make_imbalance
1 frames
/usr/local/lib/python3.6/dist-packages/imblearn/datasets/_zenodo.py in <module>()
58 from sklearn.datasets import get_data_home
59 from sklearn.datasets.base import Bunch
---> 60 from sklearn.utils.fixes import makedirs
61 from sklearn.externals import six
62 from sklearn.utils import check_random_state
ImportError: cannot import name 'makedirs'
Я пытался поискать эту проблему в течение 30 минут, но я не сделал никакого прогресса. Кто-нибудь может мне помочь?