Lesson2: The Machine Learning Workflow
10. Exercise: Choosing Metrics
1. iou.py
- iou: Intersection Over Union = 교집합 면적 / 합집합 면적
- enumerate (python)
반복문 사용 시 몇 번째 반복문인지 확인용
인덱스 번호와 컬렉션의 원소를 tuple 형태로 변환
출처: https://suwoni-codelab.com/python%20%EA%B8%B0%EB%B3%B8/2018/03/03/Python-Basic-for-in/
2. precision_recall.py
- 이론 (Precision, Recall, Accuracy)
- np.where:
배열의 요소 중 조건을 만족하는 요소를 반환. 조건 반환함수
기본형: np.where(조건식, 참 값, 거짓 값)
참, 거짓을 입력하지 않으면 색인값 tuple을 반환
출처: https://076923.github.io/posts/Python-numpy-15/
- zip (python)
- np.unique:
배열 내 중복된 요소 제거
https://rfriend.tistory.com/tag/numpy%20unique%28x%29%20%ED%95%A8%EC%88%98
'일개미의 생활 ∙̑◡∙̑ > 공부' 카테고리의 다른 글
Lesson4-8: Logistic Regression (1) | 2021.09.21 |
---|---|
Lesson2: The Machine Learning Workflow 마무리 (2) | 2021.08.17 |
딥러닝교육 정리_1 (0) | 2021.04.25 |
댓글