R: Summarizes the output of the neural network, the data and the...
prediction
R Documentation
Summarizes the output of the neural network, the data and the fitted values of glm objects (if available)
Description
prediction, a method for objects of class nn, typically produced by neuralnet.
In a first step, the dataframe will be amended by a mean response, the mean of all responses corresponding to the same covariate-vector.
The calculated data.error is the error function between the original response and the new mean response.
In a second step, all duplicate rows will be erased to get a quick overview of the data.
To obtain an overview of the results of the neural network and the glm objects, the covariate matrix will be bound to the output of the neural network and the fitted values of the glm object(if available) and will be reduced by all duplicate rows.
Usage
prediction(x, list.glm = NULL)
Arguments
x
neural network
list.glm
an optional list of glm objects
Value
a list of the summaries of the repetitions of the neural networks, the data and the glm objects (if available).