楼主: naivelann
3162 4

[实际应用] 【新手求助】关于R语言C50包中参数costs的问题 [推广有奖]

  • 0关注
  • 1粉丝

初中生

14%

还不是VIP/贵宾

-

威望
0
论坛币
8 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
325 点
帖子
8
精华
0
在线时间
10 小时
注册时间
2017-4-17
最后登录
2018-5-7

楼主
naivelann 发表于 2017-4-17 11:45:42 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
    我在R的C50说明文档中看到costs是指的代价矩阵,但是具体这个代价矩阵怎么设置?他的行列名称是分类后的类别名称吗?比如我最后的分类只有0和1,那我的代价矩阵costs设置表头的时候是行0和1 列0和1吗?具体这个怎么应该怎么设置求助!!!

二维码

扫码加我 拉你入群

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

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

关键词:costs 新手求助 Cost R语言 cos

回帖推荐

飞天玄舞6 发表于2楼  查看完整内容

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章

沙发
飞天玄舞6 在职认证  发表于 2017-4-17 13:36:51
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章

藤椅
naivelann 发表于 2017-4-19 22:02:05
谢谢,我知道了。很感激!

板凳
naivelann 发表于 2017-4-19 22:02:34
飞天玄舞6 发表于 2017-4-17 13:36
The cost matrix should by CxC, where C is the number of classes. Diagonal elements are ignored.
Col ...
我知道了 谢谢 很感激

报纸
Tony_Liu 在职认证  发表于 2018-11-20 16:39:39
那请问是0排在前面还是1排在前面呢?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 23:19