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

sklearn.datasets.get_X_y does not exist #2

Open
adonnini opened this issue Mar 24, 2024 · 0 comments
Open

sklearn.datasets.get_X_y does not exist #2

adonnini opened this issue Mar 24, 2024 · 0 comments

Comments

@adonnini
Copy link

I am attempting to use your model for use in my application.

It contains this line:

X,y = sklearn.datasets.get_X_y(all_data,33)

which causes the traceback reported below.

I spent a few hours researching this issue. I could not find any information about sklearn.datasets.get_X_y

please note that pycharm with regards to the call tells me that
Cannot find reference 'get_X_y' in '__init__.py'

Could you please help me understand what I should do in order to resolve this issue?

I checked with the scikit_learn tema. They confirmed that there is no 'get_X_y in sklearn.datasets. Could you please tell me where I would find the code for the function 'get_X_y you use in your notebook?

Thank you

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/sklearn/datasets/__init__.py", line 159, in __getattr__
    return globals()[name]
KeyError: 'get_X_y'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/adonnini1/Development/ContextQSourceCode/NeuralNetworks/RetailSalesForecasting/Sales_Forecasting_Project/downloadedNotebooks/lightgbm_tuning.py", line 128, in <module>
    X,y = sklearn.datasets.get_X_y(all_data,33)
  File "/usr/local/lib/python3.10/site-packages/sklearn/datasets/__init__.py", line 162, in __getattr__
    raise AttributeError
AttributeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant