likelihoods.m
来自「高斯过程在回归和分类问题中的应用」· M 代码 · 共 31 行
M
31 行
% likelihood: likelihood functions are provided to be used by the binaryGP% function, for binary Gaussian process classification. Two likelihood% functions are provided:%% logistic % cumGauss%% The likelihood functions have three possible modes, the mode being selected% as follows (where "lik" stands for any likelihood function):%% (log) likelihood evaluation: [p, lp] = lik(y, f)% % where y are the targets, f the latent function values, p the probabilities% and lp the log probabilities. All vectors are the same size.%% derivatives (of the log): [lp, dlp, d2lp, d3lp] = lik(y, f, 'deriv')%% where lp is a number (sum of the log probablities for each case) and the% derivatives (up to order 3) of the logs wrt the latent values are vectors% (as the likelihood factorizes there are no mixed terms).%% moments wrt Gaussian measure: [m0, m1, m2] = lik(y, mu, var)%% where mk is the k'th moment: \int f^k lik(y,f) N(f|mu,var) df, and if y is% empty, it is assumed to be a vector of ones.%% See the help for the individual likelihood for the computations specific to% each likelihood function.%% Copyright (c) 2007 Carl Edward Rasmussen and Hannes Nickisch 2007-04-11.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?