2018-10-24
                                阅读量:
                                1016
                            
                        【新手向】C50包中参数costs的问题
                        上次有个刚接触R的小可爱问我:
在R的C50说明文档中看到costs是指的代价矩阵,但是具体这个代价矩阵怎么设置?他的行列名称是分类后的类别名称吗?比如我最后的分类只有0和1,那我的代价矩阵costs设置表头的时候是行0和1 列0和1吗?具体这个怎么应该怎么设置求助!!!
The cost matrix should by CxC, where C is the number of classes. Diagonal elements are ignored.
Columns should correspond to the true classes and rows are the predicted classes。
这是官方文档上的话,也就是说,列是实际类,行为预测类。详细信息请看 machine learning with R(2E)第5章。
帮助文档真的是新手的神器!
                                0.0000
                            
                                0
                            
                                0
                            
                                
                            
                                关注作者
                            
                                    收藏
                                                            评论(0)
                    
发表评论
暂无数据
                        
                        推荐帖子
                    
                0条评论
                        0条评论
                        0条评论
                        
            
                
                
