Data Analysis

다중분류 모델의 평가지표 인접 정확도

keepgroovin' 2024. 6. 18. 10:52


precise_accuracy = np.sum(y_pred == y_test)/len(y_pred)

Adjacent_accuracy = np.sum(np.abs(y_pred == y_test) <= 1) /len(y_pred)