You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from sklearn.metric import mean_squared_error
feature_importance_permutation(..., metric=mean_squared_error)
Error:
UnboundLocalError: local variable 'score_func' referenced before assignment
Looking at the code, it does make sense. Metric should be either of the two options documented. Contrary, to what is documented however, passing a function DOES NOT work.
Please make the feature_importance_permutation() work with arbitrary scoring functions or update the documentation.
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
The following does not work:
Error:
Looking at the code, it does make sense. Metric should be either of the two options documented. Contrary, to what is documented however, passing a function DOES NOT work.
Please make the feature_importance_permutation() work with arbitrary scoring functions or update the documentation.
Thank you!
The text was updated successfully, but these errors were encountered: