Write a function that when called with a confusion matrix for a binary classification model returns a dictionary with its precision and recall.
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: hard
标签: Data Science
参考答案摘要
We can use the below for this purpose: ``` def calculate_precsion_and_recall(matrix): true_positive = matrix[0][0] false_positive = matrix[0][1] false_negative = matrix[1][0] return { 'precision&...
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。