bcmgrad.m
来自「The Bayesian Committee Machine (BCM) is 」· M 代码 · 共 32 行
M
32 行
function g = bcmgrad(net, x, t)% bcmgrad - Error gradient for Bayesian Committee Machine%% Synopsis:% g = bcmgrad(net)% % Arguments:% net: BCM structure% % Returns:% g: Gradient of the error function (marginal likelihood) with respect% to the kernel parameters% % Description:% Error function and gradient are computed on the basis of the% pre-initialized data in each GP module, thus no data is required as% input.% % % See also: bcm,bcmtrain,bcminit,bcmerr% % Author(s): Anton Schwaighofer, Nov 2004% $Id: bcmgrad.m,v 1.1 2004/11/18 21:19:46 anton Exp $g = 0;for i = 1:length(net.module), netI = net.module(i); gI = gpgrad(netI, netI.tr_in, netI.tr_targets); g = g+gI;end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?