jundongl / scikit-feature

open-source feature selection repository in python
GNU General Public License v2.0
1.51k stars 447 forks source link

Examples are not compatible with scikit-learn 0.20.4 #54

Open josepsmartinez opened 4 years ago

josepsmartinez commented 4 years ago

I have been trying to execute the examples in source code (in particular http://featureselection.asu.edu) and I am struggling with which scikit-learn version to use.

By default (if no particular version is specified) pip download scikit-learn version 0.20.4. This version yields the following error:

ImportError: cannot import name cross_validation

I have tried manually installing older versions, but got different errors.

Versions 0.10 and 0.12 yield

ImportError: cannot import name accuracy_score

Version 0.15 yields

ImportError: No module named skfeature.function.similarity_based

Could you provide which version of scikit-learn, numpy and scipy should be installed to execute the examples?

Anyway, I am able to import the algorithms from skfeature.function.*, the issue is on running the examples.

Thank you.


System configuration: Python 2.7.17 (Anaconda) Numpy 1.16.4 SciPy 1.2.3