logo

构建混淆矩阵:概率阈值为 0.6,并计算模型准确率。

Build a confusion matrix for the model where the probability threshold is 0.6, and also find the accuracy of the model.

题目类型: 技术面试题

这是一道技术面试题,常见于澳洲IT公司面试中。

难度: medium

分类: 模型评估, 分类阈值

标签: R, confusion matrix, accuracy, threshold

参考答案摘要

核心答案 准确率计算公式: Accuracy = (True positives + True negatives) / (True positives + True negatives + False positives + False negatives) 在 R 中使用 table() 构建混淆矩阵: table(test$target, pred_heart > 0.6) 这里阈值设置为 ...

本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。

← 返回面试题库

构建混淆矩阵:概率阈值为 0.6,并计算模型准确率。

Mediumalgorithms

想查看完整答案?

登录匠人学院学习中心,获取 STAR 格式回答和详细技术解析

前往学习中心查看答案