Description Usage Arguments Details Value
compute, a method for objects of class nn, typically produced by neuralnet. Computes the outputs of all neurons for specific arbitrary covariate vectors given a trained neural network. Please make sure that the order of the covariates is the same in the new matrix or dataframe as in the original neural network.
1 |
x |
an object of class nn, or contains at least the |
covariate |
a dataframe or matrix containing the variables that had been used to train the neural network. |
rep |
an integer indicating the neural network's repetition which should be used. |
model_type |
State specific model type that was fit (e.g. payor) |
This is a replication of the compute function slightly modified for OOP
to accept big.matrix
objects in addition to matrix
or data.frame
.
compute |
returns a list containing the following components: |
neurons |
a list of the neurons' output for each layer of the neural network. |
net.result |
a matrix containing the overall result of the neural network. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.