[問題]boxconstraint of svmtrain

看板MATLAB作者 (風過無痕)時間9年前 (2015/06/17 21:23), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
有人知道"boxconstraint" of function "svmtrain"? 網站寫: Value of the box constraint C for the soft margin. C can be a scalar, or a vector of the same length as the training data. If C is a scalar, it is automatically rescaled by N/(2*N1) for the data points of group one and by N/(2*N2) for the data points of group two, where N1 is the number of elements in group one, N2 is the number of elements in group two, and N = N1 + N2. This rescaling is done to take into account unbalanced groups, that is cases where N1 and N2 have very different values. If C is an array, then each array element is taken as a box constraint for the data point with the same index. 但我有問題 1. group one 指的是歸類於 0 還是 1的class? 2. 如果按照網站的定義的話 1<C<無限 但為什麼能設為0.1? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.202.193 ※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1434547414.A.49B.html
文章代碼(AID): #1LWNJMIR (MATLAB)