Graphviz之DT:手把手教你使用可视化工具Graphviz将dot文件转为结构图的pdf文件
生活随笔
收集整理的這篇文章主要介紹了
Graphviz之DT:手把手教你使用可视化工具Graphviz将dot文件转为结构图的pdf文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Graphviz之DT:手把手教你使用可視化工具Graphviz將dot文件轉為結構圖的pdf文件
?
?
?
?
?
?
目錄
Graphviz軟件的下載
Graphviz將dot文件轉為結構圖的pdf文件
輸出結果
?
?
?
?
?
?
?
?
?
Graphviz軟件的下載
Graphviz:可視化工具Graphviz的簡介、安裝、使用方法、經典案例之詳細攻略
?
?
?
?
Graphviz將dot文件轉為結構圖的pdf文件
? ? ? cmd,在dos環境下,dot-Tpdf input.dot -o convertoutput.pdf命令,即可將niu.dot轉為niu.pdf。我的dot文件是下邊這個模樣
digraph Tree { node [shape=box] ; 0 [label="native=no <= 0.5\nentropy = 0.985\nsamples = 14\nvalue = [6, 8]"] ; 1 [label="entropy = 0.0\nsamples = 7\nvalue = [0, 7]"] ; 0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ; 2 [label="income=high <= 0.5\nentropy = 0.592\nsamples = 7\nvalue = [6, 1]"] ; 0 -> 2 [labeldistance=2.5, labelangle=-45, headlabel="False"] ; 3 [label="entropy = 0.0\nsamples = 6\nvalue = [6, 0]"] ; 2 -> 3 ; 4 [label="entropy = 0.0\nsamples = 1\nvalue = [0, 1]"] ; 2 -> 4 ; } digraph Tree { node [shape=box] ; 0 [label="native=no <= 0.5\nentropy = 0.985\nsamples = 14\nvalue = [6, 8]"] ; 1 [label="entropy = 0.0\nsamples = 7\nvalue = [0, 7]"] ; 0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ; 2 [label="income=high <= 0.5\nentropy = 0.592\nsamples = 7\nvalue = [6, 1]"] ; 0 -> 2 [labeldistance=2.5, labelangle=-45, headlabel="False"] ; 3 [label="entropy = 0.0\nsamples = 6\nvalue = [6, 0]"] ; 2 -> 3 ; 4 [label="entropy = 0.0\nsamples = 1\nvalue = [0, 1]"] ; 2 -> 4 ; }?
?
輸出結果
?
?
大功告成啦,哈哈
?
?
?
?
總結
以上是生活随笔為你收集整理的Graphviz之DT:手把手教你使用可视化工具Graphviz将dot文件转为结构图的pdf文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DL之DNN优化技术:自定义MultiL
- 下一篇: ML之ME/LF:机器学习中常见模型评估