jeffheaton's picture

    Querying the neural network allows you to specify values for the inputs to the neural network and observe the outputs. To query the neural network, click “Query” at the top of the network editor seen in Figure 4.7. This will open the query window as seen in Figure 4.14.

Figure 4.14: Query the Neural Network

Query the Neural Network

    As you can see from the above window, you are allowed to enter two values for the input neurons. When you click “Calculate”, the output values will be shown. In the example above two zeros were entered, which resulted in 0.008. This is consistent with the XOR operator, as 0.008 is close to zero. To get a value even closer to zero, train the neural network to a lower error rate.

    You can also view the weights and threshold values that were generated by the training. From the network editor, shown in Figure 4.7, right click the synapse and choose “Edit Weight Matrix” from the popup menu. Likewise, you can view the thresholds by right-clicking and choosing “Edit Layer” from the pop-up menu. Figure 4.15 shows the dialog used to edit the layer properties.

Figure 4.15: View Layer Properties

View Layer Properties

    You can also browse available activation functions. If you choose to change the activation function you will see something similar to that shown in Figure 4.16.

Figure 4.16: Edit the Activation Function

Edit the Activation Function

    In Figure 4.16 you can see that the current activation function is the hyperbolic tangent. The graph for the hyperbolic tangent function is also shown for reference.


Copyright 2005 - 2012 by Heaton Research, Inc.. Heaton Research™ and Encog™ are trademarks of Heaton Research. Click here for copyright, license and trademark information.