Skip to content

sklearn.datasets.get_X_y does not exist #2

@adonnini

Description

@adonnini

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions