getcost.m
来自「matlab的模式识别toolbox」· M 代码 · 共 16 行
M
16 行
%GETCOST Get classification cost matrix%% [COST,LABLIST] = GETCOST(W)%% Returns the classification cost matrix as set in the classifier W.% An empty cost matrix is interpreted as equal costs for misclassification.% In that case COST = ONES(C+1) - EYE(C+1) is returned, if C is the number% of classes. Row C+1 and column C+1 in COST refer to unlabeld objects.% In LABLIST the class labels are returned.% Getcost will return [] when no costmatrix is defined.%% If A has target labels an error is returned as in that case no classes% and thereby no costs are defined.%% See MAPPINGS
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?