Description Usage Arguments Details Value
Allows the user to generate a neural network structure for the purposes of training and predicting.
1 2 3 4 5 |
ncov |
An integer, the number of input units. |
nout |
An integer, the number of output units. |
hlayer_size |
An integer, the number of nodes making up the hidden layer. Default is 1. |
actF |
The choice of activation function. See 'Details'. |
costF |
The choice of cost function. See 'Details'. |
outF |
The choice of output function. See 'Details'. |
bias |
The choice for the bias term of each layer. Default is 1 for each layer. |
hp.Err |
Value of the scale hyperparameter for the network errors. Defaults to FALSE for no bayesian. |
hp.W1 |
Value of the scale hyperparameter for the first layer weights. Defaults to FALSE for no bayesian. |
hp.W2 |
Value of the scale hyperparameter for the second layer weights. Defaults to FALSE for no bayesian. |
hp.B1 |
Value of the scale hyperparameter for the first layer bias. Defaults to FALSE for no bayesian. |
hp.B2 |
Value of the scale hyperparameter for the second layer bias. Defaults to FALSE for no bayesian. |
decay_term |
Control term for the initial valus of the weights. Standard deviation of initial weights is 1/decay_term. Default is 1. |
BLNN_Build provides users with different activation, cost, and output finctions which can be chosen based on the model type. Activation functions are applied at the hidden layer in order to assist in computation where the output function restricts the range of values to fit the given problem. We recomend using tanh in the activation function in most cases. MSE can be used when taking the error of linear outputs but cross entropy is suggested otherwise.
The network object, defined as a list containing
Number of covariates.
Number of outputs.
Size of the hidden layer.
Activation Function.
Cost Function.
Output Function.
Bias terms.
Error hyperparameter.
A list containing weight and bias hyperparameters.
A list containing each layer's weight matrix.
A placeholder to contain weights1 multiplied by inputs.
A placeholder to contain actF evaluated at Amat.
A placeholder to contain weights2 multiplied by postAmat.
A placeholder to contain trained output values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.