#include <ProbenBNet.h>

Public Member Functions | |
| ProbenBNet (const unsigned in=0, const unsigned out=0) | |
| Creates an empty proben bias network with "in" input neurons and "out" output neurons. | |
| ProbenBNet (const unsigned in, const unsigned out, const Array< int > &cmat) | |
| Creates a proben bias network with "in" input neurons and "out" output neurons. Additionally, the array "cmat" determines the topology (i.e., number of neurons and their connections). | |
| ProbenBNet (const unsigned in, const unsigned out, const Array< int > &cmat, const Array< double > &wmat) | |
| Creates a proben bias network with "in" input neurons and "out" output neurons. Additionally, the arrays "cmat" and "wmat" determine the topology (i.e., number of neurons and their connections) as well as the connection weights. | |
| ProbenBNet (const std::string &filename) | |
| Creates a proben bias network by reading the necessary information from a file named "filename". | |
| double | g (double a) |
Activation function of the hidden neurons. | |
| double | dg (double ga) |
Computes the derivative of the activation function for the hidden neurons. | |
The "proben 1" set is a set of benchmarks and benchmarking rules for neural networks, that is based on real data instead of artifical problems. This special predefined feed-forward network with an alternative activation function for the hidden units and linear output units is optimal for the problems offered in the proben set.
For more information about the proben set, please refer to the proben 1 website.
As with class ProbenNet, the neuron-bias connections must be explicitly set.
Definition at line 79 of file ProbenBNet.h.
| ProbenBNet::ProbenBNet | ( | const unsigned | in = 0, |
|
| const unsigned | out = 0 | |||
| ) | [inline] |
Creates an empty proben bias network with "in" input neurons and "out" output neurons.
Constructor no. 1
Only the input and output dimensions are set, but the network will contain no neurons.
| in | Dimension of the input (no. of input neurons), the default value is zero. | |
| out | Dimension of the output (no. of output neurons), the default value is zero. |
Definition at line 110 of file ProbenBNet.h.
| ProbenBNet::ProbenBNet | ( | const unsigned | in, | |
| const unsigned | out, | |||
| const Array< int > & | cmat | |||
| ) | [inline] |
Creates a proben bias network with "in" input neurons and "out" output neurons. Additionally, the array "cmat" determines the topology (i.e., number of neurons and their connections).
Constructor no. 2
A network with the given connections will be created, memory for the weightMatrix reserved, but the weights for all connections will be set to zero.
| in | Dimension of the input (no. of input neurons). | |
| out | Dimension of the output (no. of output neurons). | |
| cmat | The connectionMatrix. Keep in mind, that because of the explicitly used neuron-bias connections, this must be a matrix, when the network includes neurons. |
Definition at line 145 of file ProbenBNet.h.
| ProbenBNet::ProbenBNet | ( | const unsigned | in, | |
| const unsigned | out, | |||
| const Array< int > & | cmat, | |||
| const Array< double > & | wmat | |||
| ) | [inline] |
Creates a proben bias network with "in" input neurons and "out" output neurons. Additionally, the arrays "cmat" and "wmat" determine the topology (i.e., number of neurons and their connections) as well as the connection weights.
Constructor no. 3
A network with the given connections and weights will be created.
| in | Dimension of the input (no. of input neurons). | |
| out | Dimension of the output (no. of output neurons). | |
| cmat | The connectionMatrix. Keep in mind, that because of the explicitly used neuron-bias connections, this must be a matrix, when the network includes neurons. | |
| wmat | The weightMatrix. |
Definition at line 181 of file ProbenBNet.h.
| ProbenBNet::ProbenBNet | ( | const std::string & | filename | ) | [inline] |
Creates a proben bias network by reading the necessary information from a file named "filename".
Constructor no. 4
A file is used to create a new network. This file must have the following content: The first line of the file must contain two numbers that specify the number of input and the number of output neurons of the network, respectively.
This line is followed by the values for the connectionMatrix.
Keep in mind, that because of the explicitly used neuron-bias connections, the connection matrix must be a
matrix, when the network includes
neurons. The third and last part are the values for the weightMatrix.
| filename | Name of the file that contains the information for the creation of the network. If the file doesn't exist, the method will exit with failure. |
Definition at line 246 of file ProbenBNet.h.
| double ProbenBNet::dg | ( | double | ga | ) | [inline, virtual] |
Computes the derivative of the activation function
for the hidden neurons.
The derivative function
is defined as
| ga | The value of . |

Reimplemented from FFNet.
Definition at line 330 of file ProbenBNet.h.
| double ProbenBNet::g | ( | double | a | ) | [inline, virtual] |
Activation function
of the hidden neurons.
The activation function is used for the propagation of the input through the network. Given a network with
neurons, including
input neurons and
output neurons, the sigmoid activation function for the hidden neuron with index
is given as

where
as the propagated result of the input for the previous neurons is calculated as

and
denotes the bias term.
This alternative activation function maps inputs to the values
as the
function does, but in contrast to
the alternative function is more simple to calculate, more stable in a numerical way and saturates more slowly what has a positive effect when learning generalizations.
| a | Input for the activation function, see above. |
.Reimplemented from FFNet.
Definition at line 297 of file ProbenBNet.h.