I have a question about psychedelon data load

Asked 2 years ago, Updated 2 years ago, 115 views

For example in \Anaconda3\Lib\site-packages\sklearn\datasets\data in the Cycitrun folder Data sets include data such as boston_house_pries, breath_cancer, and iris. The example data set is It's always loaded without errors, but if I move the data I'm trying to write to a folder and use it, even if I try various data, I keep getting errors.

from sklearn.datasets import load_test ImportError: cannot import name 'load_test' Like this

Is there a way to use it?

sklearn python machine-learning

2022-09-21 10:56

1 Answers

Just inserting data into the data folder does not automatically create the load_ function. If you look at the .../sklearn/dataset/_base.py file, you will see that several load_iris functions are defined, including load_iris.

You can look at it and make it similar, or you can simply implement a function that reads like Pandas, as others have said in the comments.


2022-09-21 10:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.