Python決策樹的可視化

方法一:node # Fit the classifier with default hyper-parameters clf = DecisionTreeClassifier(random_state=1234) model = clf.fit(X, y) text_representation = tree.export_text(clf) print(text_representation)
相關文章
相關標籤/搜索