?? code_moc.m
字號:
function [codebook,scheme] = code_MOC(m)% Generate the codebook for multiclass classification with Minimum Output encoding.%% >> codebook = code_MOC(m)%% see also:% code% Copyright (c) 2002, KULeuven-ESAT-SCD, License & help @ http://www.esat.kuleuven.ac.be/sista/lssvmlabnb = ceil(log2(m));codebook = -ones(nb,m);for i=1:m, code = str2num(num2str(dec2bin(i-1)')).*2-1; codebook((nb-length(code)+1):nb,i) = code;end% output forat, where 'b' stands for binary discriminatorscheme = []; for i=1:nb, scheme = [scheme 'b']; end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -