question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'check_X_y' from 'sktime.utils.validation'

See original GitHub issue

Hi,

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:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ramdhan1989commented, Oct 7, 2020

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

0reactions
mloningcommented, Oct 7, 2020

Hi @ramdhan1989 unfortunately we haven’t pushed out a new release for sktime-dl. Any help is appreciated!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found