Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Tags
- 엑셀
- Python
- 이미지읽어오기
- 깃에러
- windowpowershell
- 이클립스프로젝트
- OS
- 통계
- github
- 카파
- 깃허브
- gitcommand
- 프로그래밍
- 반복문
- git
- powershell에러해결
- 이미지
- 코드
- 일치도
- 머신러닝
- 파이썬
- 라이브러리
- 파이썬에러
- 데이터
- 데이터분석
- image
- 이미지연산
- defaultbranch
- powershell에러
- 코딩
Archives
- Today
- Total
목록DecisionTree (1)
나중에 내가 보려고 만든 블로그
[python] decision tree 시각화, graphviz 리눅스 설치, 에러
파이썬에서 decision tree 시각화 하는 방법이다. 어떤 기준으로 분류했는지 결과를 시각화 해준다. dot 파일로 결과물이 저장되는데 이걸 바로 png로 변환해서 볼 수 있는 코드다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 #classifier from sklearn.tree import DecisionTreeClassifier clf = DecisionTreeClassifier(max_depth = 3) #depth제한 #train, test set 나누기 from sklearn.model_selection import train_test_split..
Python
2021. 5. 13. 10:50