The function compute
is deprecated. Please refer to the new function predict.nn
.
compute(x, covariate, rep = 1)
an object of class nn
.
a dataframe or matrix containing the variables that had been used to train the neural network.
an integer indicating the neural network's repetition which should be used.
compute
returns a list containing the following components:
a list of the neurons' output for each layer of the neural network.
a matrix containing the overall result of the neural network.