grnn.train {BETS} | R Documentation |
Train a General Regression Neural Network
Description
Creates a set of probabilistic neural networks as proposed by Specht [1991]. The user provides a set of regressors and the function chooses which subset is the best, based on an accuracy measure (by default, the MAPE) between fited and actual values. These networks have only one parameter, the sigma
, which is the standard deviation of each activation function (gaussian) of the pattern layer. Sigma can also be automatically chosen. This function builds on grnn-package.
Usage
grnn.train(train.set, sigma, step = 0.1, select = TRUE, names = NA)
Arguments
train.set |
A |
sigma |
A |
step |
A |
select |
A |
names |
A |
Value
A list
of result objects, each representing a network. These objects are ordered by MAPE (the 20 best MAPEs) and its fields are:
accuracy
: Anumeric
value. Accuracy measure between the fitted and the actual series values. By default, the MAPE. In future versions, it will be possible to change it.fitted
: The fitted values, that is, one step ahead predicitions calculated by the trained net.net
: An object returned by the grnn function. Represents a trained net.sigma
: Anumeric
. The sigma that was chosen, either by the user or by the function itself (in caseselect
was set toTRUE
)regressors
: Acharacter vector
. Regressors that were chosen, either by the user or by the fuction itself (in caseselect
was set toTRUE
)sigma.accuracy
: Adata.frame
. Sigma versus accuracy value of the corresponding trained network. Those networks were trained using the best set of regressors.residuals
: Anumeric vector
. Fitted values subtracted from the actual values.
grnn.train also returns a diagnostic of training rounds and a sigma
versus accuracy
plot.
Author(s)
Talitha Speranza talitha.speranza@fgv.br