这与Names features importance plot after preprocessing相关 在我的例子中,问题出在图中: for importance_type in ('weightGreen 'fillcolor': '#78fcb'}
xgb.to_graphviz(clf_xgb,size = '10,
当我使用pydot和graphviz包时,它显示错误Errno 2 dot not found in path。我找了很多解决方案。人们建议使用“sudo apt install graphviz”或“sudo apt-get install graphviz”。但是当我使用'sudo‘时,它显示'username is not in the sudoers file.This shows be reported’。我还尝试将$PATH:/..../lib/