AttributeError: 'H2OAutoML' object has no attribute 'explain'
As described in docs (http://docs.h2o.ai/h2o/latest-stable/h2o-docs/explain.html) there is H2O Explainability Interface which I try to use, but I got "AttributeError: 'H2OAutoML' object has no attribute 'explain'".
Here is code from example:
I have checked that this issue report already in https://h2oai.atlassian.net/browse/PUBDEV-7850. It says that h2o.explain is available since 126.96.36.199 but I have installed 188.8.131.52.
I have tried to install library via conda/pip with no luck.
Is this function available to use now?
I was able to replicate this only when I did’t have matplotlib installed (which is required by the explain module). I think in 184.108.40.206 we throw an exception about Matplotlib but not in 220.127.116.11 - explain module just doesn’t get loaded when matplotlib is missing so the explain method is not registered => AttributeError: 'H2OAutoML' object has no attribute 'explain'
Is it possible that it was missing matplotlib in your case as well? H2O doesn’t depend on it (since you don’t need to have it in headless environments) so you would have to install it manually.
I looked at the differences between 18.104.22.168 and 22.214.171.124 and there was just one bug fix of a histogram in the background of PDP plots. In 126.96.36.199, I changed the behavior - explain module gets registered even if you don’t have matplotlib but if you don’t have it it will fail on invocation.
This has been verified to be working (in 188.8.131.52).
Thank you for looking at this issue.
I have just upgraded to 184.108.40.206 and can confirm that it’s working well.
Thank you again
Can you upgrade to 220.127.116.11 to see if it’s working? It should be working in 18.104.22.168, but just as a test, if you can try .3, that would be helpful.
Can you show the output of h2o.init() when you start the H2O cluster (so I can verify the version)? I don’t know why it would be missing unless it’s not the right version…
Right now the version available via pip is 22.214.171.124.