Open aw236 opened 3 years ago
Was this ever resolved? I am having the same issue... I tried creating the file in the directory as well and am still not having luck. However, it is very possible that I did create this file in the wrong directory. I am unsure, please help!
When I ran the above commands, I found that the command "dot" was not recognised: java -cp h2o-genmodel.jar hex.genmodel.tools.PrintMojo --tree 0 -i surrogate_hex.zip -o gv_file.gv dot -Tpng gv_file.gv -o decision_tree.png
To make this work, I added the path for Graphviz bin folder in my system and user env variables and it worked (Ref - https://bobswift.atlassian.net/wiki/spaces/GVIZ/pages/20971549/How+to+install+Graphviz+software)
I tried to run the code found in: https://github.com/h2oai/h2o-tutorials/blob/master/tutorials/isolation-forest/interpreting_isolation-forest.ipynb
I tried the code on two different machines and got the same issue:
FileNotFoundError: No such file or directory: './global_surrogate_decision_tree.png'
the problem is generated by the following code:
I ripped out the guts of the function and ran it line by line as shown below, to try to narrow down the offending line of code:
I verified that
global_surrogate_decision_tree_hex.zip
existed atmojo_path
.I verified that
h2o-genmodel.jar
existed ath2o_jar_path
.The code fails here:
and the error message is below:
I checked the directory and indeed, I could not find the file:
global_surrogate_decision_tree.png
. Not sure if there is an obvious solution here but I think the tutorial should be updated such that this issue doesn't happen for others who may try it.