2018-10-24
閱讀量:
925
【新手向】C50包中參數(shù)costs的問(wèn)題
上次有個(gè)剛接觸R的小可愛問(wèn)我:
在R的C50說(shuō)明文檔中看到costs是指的代價(jià)矩陣,但是具體這個(gè)代價(jià)矩陣怎么設(shè)置?他的行列名稱是分類后的類別名稱嗎?比如我最后的分類只有0和1,那我的代價(jià)矩陣costs設(shè)置表頭的時(shí)候是行0和1 列0和1嗎?具體這個(gè)怎么應(yīng)該怎么設(shè)置求助?。?!
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。
這是官方文檔上的話,也就是說(shuō),列是實(shí)際類,行為預(yù)測(cè)類。詳細(xì)信息請(qǐng)看 machine learning with R(2E)第5章。
幫助文檔真的是新手的神器!






評(píng)論(0)


暫無(wú)數(shù)據(jù)
CDA考試動(dòng)態(tài)
CDA報(bào)考指南
推薦帖子
0條評(píng)論
0條評(píng)論
0條評(píng)論