Install graphiz on AWS Sagemaker

后端 未结 1 794
庸人自扰
庸人自扰 2021-01-27 08:35

I\'m on a Jupyter notebook using Python3 and trying to plot a tree with code like this:

import xgboost as xgb
from xgboost import plot_tree

plot_tree(model, num         


        
相关标签:
1条回答
  • 2021-01-27 09:19

    I was finally able to learn that Conda has a package which can install it for you. I was able to get it installed by running the command:

    !conda install python-graphviz --yes
    

    Note the --yes is only needed if the installation needs to verify adding/changing other packages since the Jupyter notebook is not interactive once it is running.

    0 讨论(0)
提交回复
热议问题