kernGradient(tigre)
kernGradient()所属R语言包:tigre
Compute the gradient wrt the kernel parameters.
计算梯度作图,内核参数。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute the gradient wrt the kernel parameters.
计算梯度作图,内核参数。
用法----------Usage----------
kernGradient(kern, x, ...)
参数----------Arguments----------
参数:kern
the kernel structure for which the gradients are being computed.
内核结构的梯度计算。
参数:x
the input locations for which the gradients are being computed, specifically those associated with the rows of the kernel matrix if there are two arguments of input locations.
计算的梯度正在输入的位置,特别是那些与核矩阵的行相关联的,如果有两个参数输入地点。
参数:...
optional arguments including potentially: the input locations associated with the columns of the kernel matrix; matrix of partial derivatives of the function of interest with respect to the kernel matrix. With single input, the argument takes the form of a square matrix of dimension numData, where numData is the number of rows in x, with two input arguments the matrix should have the same number of rows as the first and the same number of columns as the second has rows.
包括潜在的可选参数:输入核矩阵列的位置;核矩阵方面的利益函数的偏导数矩阵。单输入参数有两个输入参数的矩阵应该有相同的行数作为第一个和相同数量的列的尺寸numData,其中numData是在x的行数,方阵的形式第二行。
Details
详情----------Details----------
g <- kernGradient(kern, x, partial) g <- *kernGradient(kern, x, partial) computes the gradient of functions with respect to the kernel parameters. As well as the kernel structure and the input positions, the user provides a matrix PARTIAL which gives the partial derivatives of the function with respect to the relevant elements of the kernel matrix.
g <- kernGradient(kern, x, partial)g <- *kernGradient(kern, x, partial)内核参数计算功能梯度。以及内核结构和输入位置,用户提供关于核矩阵的有关内容,使函数的偏导数矩阵部分。
g <- kernGradient(kern, x1, x2, partial_) g <- *kernGradient(kern, x1, x2, partial_) computes the derivatives as above, but input locations are now provided in two matrices associated with rows and columns of the kernel matrix.
g <- kernGradient(kern, x1, x2, partial_)g <- *kernGradient(kern, x1, x2, partial_)上面计算的衍生工具,但现在提供核矩阵的行和列相关联的两个矩阵的输入位置。
g <- *X*kernGradient(kern1, kern2, x, partial) g <- *X*kernGradient(kern1, kern2, x1, x2, partial_) same as above, but for cross combinations of two kernels, kern1 and kern2.
g <- *X*kernGradient(kern1, kern2, x, partial)g <- *X*kernGradient(kern1, kern2, x1, x2, partial_)上面一样,但两个内核的杂交组合,kern1和kern2。
值----------Value----------
参数:g
gradients of the function of interest with respect to the kernel parameters. The ordering of the vector should match that provided by the function kernExtractParam.
梯度的利益与尊重的内核参数的功能。向量的顺序应匹配由功能kernExtractParam提供的的。
参见----------See Also----------
kernCompute, kernExtractParam.
kernCompute,kernExtractParam。
举例----------Examples----------
kern <- kernCreate(1, 'rbf')
g <- kernGradient(kern, as.matrix(c(1, 4)), array(1, c(2, 2)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|