📜  r 混淆矩阵 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:51:59.659000             🧑  作者: Mango

代码示例2
# Get the actual responses from the dataset
actual_response <- churn$has_churned

# Get the "most likely" responses from the model
predicted_response <- round(fitted(mdl_churn_vs_relationship))

# Create a table of counts
outcomes <- table(predicted_response, actual_response)

# See the result
outcomes