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.
1 2  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. 
n.hidden 
number of hidden nodes in the CDEN model. 
hidden.fcn 
hidden layer transfer function. 
distribution 
a list that describes the probability density function associated with the predictand. 
sd.norm 

valid 

cadence.fit
, optim
, rprop
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.