Description Details Super class Public fields Methods
The likelihood of y_i given f_i is given by the logistic function with input y_i f_i (where the binary labels for y are encoded by 1 and -1). It takes no hyperparameters.
The log likelihood is given by
∑_i -log ( 1 + exp( -y_i f_i ) )
gpmss::LikelihoodFunction
-> LikLogis
name
A character vector of length one giving the likelihood function's name; "logistic"
hypers
A numeric vector giving the likelihood function's hyperparameters
lp()
Compute log probability of outcomes given function values
LikLogis$lp(y, f, hypers = NULL)
y
The observed outcomes
f
The function values (generally a posterior mean or mode)
hypers
A numeric vector giving hyperparameters for the likelihood function. If NULL (the default), the hypers data member is used.
f_derivative()
Compute partial derivatives of log likelihood function with respect to f
LikLogis$f_derivative(y, f, hypers = NULL, order = 1)
y
The observed outcomes
f
The function values (generally a posterior mean or mode)
hypers
A numeric vector giving hyperparameters for the likelihood function. If NULL (the default), the hypers data member is used.
order
An integer vector of length one giving order of derivative desired; the default is 1
clone()
The objects of this class are cloneable with this method.
LikLogis$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.