Python scikit-learn에서 수행한 결정 트리의 결과 시각화
1736 단어 treedecision파이썬scikit-learn
graphviz 공식 페이지
여기에서 다운로드 페이지로 이동하여 아래의 stable 버전을 다운로드합니다.

.msi 파일을 다운로드합니다.
다운로드한 이 msi 파일을 더블 클릭하여 설치합니다.

명령 프롬프트
pip install graphviz
pip install pydotplus

그리고, 「dot.ext」파일이 있는 디렉토리를 Path에 추가한다.
고급 시스템 설정을 열고 환경 변수를 클릭합니다.

그리고 경로에 "dot.ext"가있는 디렉토리를 추가합니다. 제 경우에는
C:\Users\사용자 이름\Anaconda3\envs\가상 환경 이름\Library\bin\graphviz
이었다.

이제 시각화 할 수 있습니다!

Reference
이 문제에 관하여(Python scikit-learn에서 수행한 결정 트리의 결과 시각화), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/shinji_komine/items/2ca41723869fcdb74566텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)