aerdem4 / lofo-importance

Leave One Feature Out Importance
MIT License
810 stars 83 forks source link

Fix error importing sklearn check scoring #16

Closed aws24689 closed 4 years ago

aws24689 commented 5 years ago

the following line of code was causing an error when trying to import the sklearn.metrics check_scoring function:

from lofo import LOFOImportance, plot_importance

the proposed change corrects this issue. This issue only presents for sklearn versions < 0.20. However, this updated line works for .20 and below.

aerdem4 commented 4 years ago

30 solves the issue by making sure that sklearn version is recent enough.