ImportError: cannot import name 'check_X_y' from 'sktime.utils.validation'
See original GitHub issueHi,
the check_X_y is not found in sktime.
Traceback (most recent call last):
File "[censored]", line 13, in <module>
from sktime_dl.classifiers.deeplearning import CNNClassifier
File "C:\Users\[censored]\Anaconda3\envs\untitled\lib\site-packages\sktime_dl\classifiers\deeplearning\__init__.py", line 1, in <module>
from ._cnn import CNNClassifier
File "C:\Users\[censored]\Anaconda3\envs\untitled\lib\site-packages\sktime_dl\classifiers\deeplearning\_cnn.py", line 23, in <module>
from sktime.utils.validation import check_X_y
ImportError: cannot import name 'check_X_y' from 'sktime.utils.validation' (C:\Users\[censored]\Anaconda3\envs\untitled\lib\site-packages\sktime\utils\validation\__init__.py)
I guess this is supposed to use validate_X_y from https://github.com/alan-turing-institute/sktime/blob/master/sktime/utils/validation/supervised.py ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
cannot import name 'check_X_y' from 'sktime.utils.validation' #12
Hi, the check_X_y is not found in sktime. ... from sktime.utils.validation import check_X_y ImportError: cannot import name 'check_X_y'
Read more >cannot import name check_array from sklearn.utils.validation ...
When I import the function check_array from module sklearn.utils.validation , it got an Import Error ( ImportError: cannot import name check_array ).
Read more >sklearn.utils.check_X_y — scikit-learn 1.2.0 documentation
Input validation for standard estimators. Checks X and y for consistent length, enforces X to be 2D and y 1D. By default, X...
Read more >Forecasting with sktime
from sktime.datasets import load_airline from sktime.utils.plotting import ... variable name from y in fit (or Coverage if no variable names were present), ...
Read more >sktime - PyPI
sktime is a library for time series analysis in Python. It provides a unified interface for multiple time series learning tasks.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, did you solve this issue ? I got same problems using sktime 0.4.2
from sktime.utils.validation import check_X_y ImportError: cannot import name 'check_X_y'
please advice,thank you
Hi @ramdhan1989 unfortunately we haven’t pushed out a new release for sktime-dl. Any help is appreciated!