환경설정
라이브러리 설치
!pip install graphviz
시각화
from sklearn.tree import export_graphviz
from graphviz import Source
graph = Source(export_graphviz(tree,
feature_names=data['feature_names'],
class_names=data['target_names'],
rounded=True,
filled=True))
graph