void fann_print_connections(struct fann * ann);
fann_print_connections
will print the connections of the ann in a compact matrix, for easy viewing of the internals of the ann.
The output from fann_print_connections on a small (2 2 1) network trained on the xor problem:
Layer / Neuron 012345 L 1 / N 3 ddb... L 1 / N 4 bbb... L 2 / N 6 ...cdaThis network have five real neurons and two bias neurons. This gives a total of seven neurons named from 0 to 6. The connections between these neurons can be seen in the matrix.
"."
is a place where there is no connection, while a character tells how strong the connection is on a scale from a-z. The two real neurons in the hidden layer (neuron 3
and 4
in layer 1
) has connection from the three neurons in the previous layer as is visible in the first two lines. The output neuron (6
) has connections form the three neurons in the hidden layer 3 - 5
as is visible in the last line.
To simplify the matrix output neurons is not visible as neurons that connections can come from, and input and bias neurons are not visible as neurons that connections can go to.
This function appears in FANN >= 1.2.0.