Description Usage Arguments Value
This function removes redundant neurons from the network, i.e. hidden layers' neurons that are not connected to neurons in the previous layer or the next layer. If a neuron is not connected to neurons in the previous layer but is connected to neurons in the next layer (effectively acts as an additional bias), biases of neurons in the next layer are properly adjusted, therefore, the resulting network behaves just like the initial one.
1 | mlp_rm_neurons(net, report = FALSE)
|
net |
an object of |
report |
logical value, if TRUE, information about removed neurons will be printed on the console (FALSE by default) |
Three-element list. The first element (net
) is the network
(an object of mlp_net
class) with all redundant neurons
removed, the second (ncount
) - the number of neurons removed,
the third (wcount
) - the number of weights removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.