TeamHG-Memex / eli5

A library for debugging/inspecting machine learning classifiers and explaining their predictions
http://eli5.readthedocs.io
MIT License
2.76k stars 334 forks source link

Error: estimator MLPClassifier is not supported #395

Open cristobal-ortega opened 3 years ago

cristobal-ortega commented 3 years ago

Hello,

I've trying to use eli5 in a MLPClassifier. I encounter the following error:

Error: estimator MLPClassifier(max_iter=3000, random_state=1010) is not supported

The code that gives the error is:

mlp = joblib.load(dirModels+fileName)
eli5.show_weights(mlp, top=10)

I've gone through the tutorial in https://eli5.readthedocs.io/en/latest/tutorials/sklearn-text.html with no issues.

lopuhin commented 3 years ago

Thanks for the report, it is indeed not supported and it's a non-trivial task to support it with show_weights, might need an API change as well to support passing a sample of documents.

zeromh commented 3 years ago

@lopuhin Is ELI5 still being updated and supported? It looks like it isn't. Asking because I need to decide whether to use ELI5 in my next project or move on to something else.

lopuhin commented 3 years ago

@zeromh maintenance and PR review should resume next week, sorry for lack of support recently.

lopuhin commented 3 years ago

@zeromh But in the context of this request - I personally don't have MLP show_weights support in mind in near future, so if you found a library which has it, I'd suggest using it (and would be glad if you share a link).