《機器學習實戰》中用matplotlib繪製決策樹, python3

  人笨, 繪製樹形圖那裏的代碼看了幾次也沒看懂(很多莫名其妙的(全局?)變量), 然後就自己想辦法寫了個 import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties def getTreeDB(mytree): """ 利用遞歸獲取字典最大深度, 子葉數目 :param mytre
相關文章
相關標籤/搜索