全部版块 我的主页
论坛 提问 悬赏 求职 新闻 读书 功能一区 经管百科 爱问频道
2086 1
2015-12-15
confusionMatrix(credit_test$GoodCredit,credit_prediction,positive = '1')
Confusion Matrix and Statistics

          Reference
Prediction   0   1
         0 183  24
         1  53  40

               Accuracy : 0.7433        
                 95% CI : (0.69, 0.7918)
    No Information Rate : 0.7867        
    P-Value [Acc > NIR] : 0.969332      

                  Kappa : 0.3437        
Mcnemar's Test P-Value : 0.001418      

            Sensitivity : 0.6250        
            Specificity : 0.7754        
         Pos Pred Value : 0.4301        
         Neg Pred Value : 0.8841        
             Prevalence : 0.2133        
         Detection Rate : 0.1333        
   Detection Prevalence : 0.3100        
      Balanced Accuracy : 0.7002        

       'Positive' Class : 1      
如上,怎么提取最后的结果,比如,kappa,sensitivity,specificity等

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-12-15 14:18:46
不是特别确定,有待验证。
你可以把结果赋给一个对象,比如
cm<-confusionMatrix(credit_test$GoodCredit,credit_prediction,positive = '1')
unlist(cm)
就可以看到里面所包含的的每个对象。等你知道对于的名字,比如“Kappa",以后就可以直接用cm$Kappa来提取了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群