cadence.cost {CaDENCE} | R Documentation |
Cost function for CDEN model fitting
Description
The maximum likelihood cost function used for CDEN model fitting. Calculates the negative of the logarithm of the likelihood. A normal distribution prior can be set for the magnitude of the input-hidden layer weights, thus leading to weight penalty regularization.
Usage
cadence.cost(weights, x, y, n.hidden, hidden.fcn, distribution, sd.norm,
valid)
Arguments
weights |
weight vector of length returned by |
x |
matrix with number of rows equal to the number of samples and number of columns equal to the number of predictor variables. |
y |
column matrix of predictand values with number of rows equal to the number of samples. |
number of hidden nodes in the CDEN model. | |
hidden layer transfer function. | |
distribution |
a list that describes the probability density function associated with the predictand. |
sd.norm |
|
valid |
|