erdogant / hgboost

hgboost is a python package for hyper-parameter optimization for xgboost, catboost or lightboost using cross-validation, and evaluating the results on an independent validation set. hgboost can be applied for classification and regression tasks.
http://erdogant.github.io/hgboost
Other
57 stars 17 forks source link

Treeplot failure - missing graphviz dependency #12

Closed ninjit closed 1 year ago

ninjit commented 1 year ago

I'm running through the example classification notebook now, and the treeplot fails to render, with the following warning:

Screen Shot 2022-10-04 at 14 30 21

It seems that graphviz being a compiled c library is not bundled in pip (it is included in conda install treeplot/graphviz though).

Since we have no recourse to add this to pip requirements, maybe a sentence in the Instalation instructions warning that graphviz must already be available and/or installed separately.

(note the suggested apt command for linux is not entirely necessary, because pydot does get installed with treeplot via pip)

erdogant commented 1 year ago

Good point. I added this to the installation instructions on the documentation pages. However, do you now receive this message and you can still make the tree plot?

ninjit commented 1 year ago

sudo apt install graphviz was enough in my situation, but for other OSes there maybe other hoops to jump through. e.g. on mac brew instal graphiz, on windows... I have no idea.

conda install graphiz maybe the universal solution, since they bundle the require C libraries/binaries, but I've had a lot of issues in the past mixing conda and pip installs within the same environment.