cadence.cost {CaDENCE}  R Documentation 
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 inputhidden layer weights, thus leading to weight penalty regularization.
cadence.cost(weights, x, y, n.hidden, hidden.fcn, distribution, sd.norm,
valid)
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 
