2) Plotting a Neural Network.

This Blog entry is from the Neural Networks section in Learn R.

It is often stated that a neural network is an unexplainable modelling techniques, which practically holds some truth, but to those with a background in regression modelling, explaining the model is not insurmountable.

The neuralnet object that was created in the previous Blog entry, allows for the plotting of the neural network using the base plot() function.  Simply call plot() passing the neural network object as an argument:

plot(NeuralNetworkFourByOne)
1.png

Run the line of script to console:

2.png

A plot is created of the neural network bearing stark resemblance to conceptual models put forward in this training manual,  and in a model of less complexity, is in fact explainable and quite reproducible on a manual basis:

3.png

As the model becomes more and more complex,  with the addition of more and more features, layers and processing elements, the neural network will naturally become less and less explainable.