qrnn (version 2.0.5)

qrnn.cost: Smooth approximation to the tilted absolute value cost function

Description

Smooth approximation to the tilted absolute value cost function used to fit a QRNN model. Optional left censoring, monotone constraints, and additive constraints are supported.

Usage

qrnn.cost(weights, x, y, n.hidden, w, tau, lower, monotone,
          additive, eps, Th, Th.prime, penalty, unpenalized)

Value

numeric value indicating tilted absolute value cost function, along with attribute containing vector with gradient information.

Arguments

weights

weight vector of length returned by qrnn.initialize.

x

covariate matrix with number of rows equal to the number of samples and number of columns equal to the number of variables.

y

response column matrix with number of rows equal to the number of samples.

n.hidden

number of hidden nodes in the QRNN model.

w

vector of weights with length equal to the number of samples; NULL gives equal weight to each sample.

tau

desired tau-quantile.

lower

left censoring point.

monotone

column indices of covariates for which the monotonicity constraint should hold.

additive

force additive relationships.

eps

epsilon value used in the approximation functions.

Th

hidden layer transfer function; use sigmoid, elu, softplus for a nonlinear model and linear for a linear model.

Th.prime

derivative of the hidden layer transfer function Th.

penalty

weight penalty for weight decay regularization.

unpenalized

column indices of covariates for which the weight penalty should not be applied to input-hidden layer weights.

See Also

qrnn.fit