eli5 icon indicating copy to clipboard operation
eli5 copied to clipboard

Error: estimator MLPClassifier is not supported

Open cristobal-ortega opened this issue 4 years ago • 4 comments

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.

cristobal-ortega avatar Dec 03 '20 09:12 cristobal-ortega

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.

lopuhin avatar Dec 03 '20 11:12 lopuhin

@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.

zeromh avatar Jan 14 '21 20:01 zeromh

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

lopuhin avatar Jan 15 '21 07:01 lopuhin

@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).

lopuhin avatar Jan 15 '21 09:01 lopuhin