getprior.m

来自「这是我找到的一个模式识别工具箱」· M 代码 · 共 29 行

M
29
字号
%GETPRIOR Get class prior probabilities of dataset%%   [PRIOR,LABLIST] = GETPRIOR(A,WARNING)%% INPUT%   A        Dataset%   WARNING  1: Generate warning if priors are not set and should be%               computed from class frequencies (default)%   WARNING  0: Suppress warning message%% OUTPUT%   PRIOR    Class prior probabilities%   LABLIST  Label list%% DESCRIPTION% Returns the class prior probabilities as defined in the dataset A.% In LABLIST the corresponding class labels are returned.%% Note that if these are not set (A.PRIOR = []), the class frequencies% are measured and returned. Use ISEMPTY(A,'prior') to test whether % A.PRIOR = [].%% If A has soft labels, these are used to estimate the class frequencies. % If A has target labels, an error is returned since in that case, no % classes are defined.%% SEE % DATASETS, SETPRIOR, ISEMPTY

⌨️ 快捷键说明

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