Precision/Recall
데이터를 다운로드 받고 필요한 형태로 변환 합니다. 그리고 사용할 함수를 선언합니다.
Precision-Recall 그래프
precision-recall 그래프를 그리기 위해서는 threshold=0.5 기준으로 예측한 y 확률 값이 필요합니다
scikit-learn의 precision_recall_curve 함수를 사용하여 threshold 변화에 따른 precision/recall 값을 구합니다.
threshold값의 변화에 따른 precision-recall 그래프를 그립니다
precision/recall, f1-score 실습
threshold 변화에 따라 계산된 precision/recall값을 이용하여 f1 score를 구합니다
f1-score 값이 가장 큰 threshold 값을 찾습니다
토론이 없습니다