lightgbm lgb create_tree_digraph graphviz 中文乱码 转成svg,然后浏览器打开截图,或者用在线工具转换成png,pdf等等。 谷歌截图,F12,然后ctrl + shift+p,输入screen,找到full size截图 g = lgb.create_tree_digraph(model, orientation ='horizontal'') g.render(filename='test',format='svg') 转svg