Ritam-Guha / Py_FS

A Python Package for Feature Selection
MIT License
57 stars 38 forks source link

cannot import name 'plot_confusion_matrix' #35

Open auroragaeta opened 1 year ago

auroragaeta commented 1 year ago

from Py_FS.evaluation import evaluate

gives the following error

"cannot import name 'plot_confusion_matrix' from 'sklearn.metrics' (/Desktop/Aurora/tesi/41.tesi_2023/venv3/lib/python3.8/site-packages/sklearn/metrics/init.py)"

Ritam-Guha commented 1 year ago

Hi, Thank you sooo much for pointing out this issue. The sklearn library made a breaking change which introduced some errors in our package because of its dependency.

I have updated the package. Now you can use Py_FS version 0.2.0 and the demonstration code has also been updated. I have also introduced datasets in Py_FS, if you are interested in working with popular datasets for feature selection.

Once again, thanks a lot for raising this issue.

auroragaeta commented 1 year ago

Thank you!