qrnn (version 2.0.5)

qrnn.initialize: Initialize a QRNN weight vector

Description

Random initialization of the weight vector used during fitting of a QRNN model.

Usage

qrnn.initialize(x, y, n.hidden, init.range=c(-0.5, 0.5, -0.5, 0.5))

Arguments

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.

init.range

initial weight range for input-hidden and hidden-output weight matrices.