getclassset.m

来自「一款数据挖掘的软件」· M 代码 · 共 17 行

M
17
字号
% GetClassSet: get the information of class_set
%
% Parameters:
% Y: the data labels
% 
% Output:
% class_set: the set of labels
% num_class: the number of labels
%
function [class_set, num_class] = GetClassSet(Y)

global preprocess;
class_set = unique(Y);
if (isfield(preprocess, 'ClassSet')),
    class_set = preprocess.ClassSet;
end;
num_class = length(class_set);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?