我已經訓練了gradient boost classifier,我想使用graphviz_exporter工具將其顯示爲here。如何可視化Sklearn GradientBoostingClassifier?
當我嘗試它,我得到:
AttributeError: 'GradientBoostingClassifier' object has no attribute 'tree_'
這是因爲graphviz_exporter是爲decision trees,但我想還是有辦法對其進行可視化,因爲梯度升壓分類必須有一個基本的決策樹。
有人知道該怎麼做嗎?
你試過使用XGBoost嗎? – sera
感謝您向我介紹XGBoost庫。我會給它一張支票,但我發現如何使用sklearn –