struct fann

Name

struct fann -- Describes a neural network.

Description

This structure is subject to change at any time. If you need to use the values contained herein, please see the Options functions. If these functions do not fulfill your needs, please open a feature request on our SourceForge project page.

Properties

unsigned int errno_f

The type of error that last occurred.

FILE * error_log

Where to log error messages.

char * errstr

A string representation of the last error.

float learning_rate

The learning rate of the network.

float connection_rate

The connection rate of the network. Between 0 and 1, 1 meaning fully connected.

unsigned int shortcut_connections

Is 1 if shortcut connections are used in the ann otherwise 0 Shortcut connections are connections that skip layers. A fully connected ann with shortcut connections is an ann where neurons have connections to all neurons in all later layers.

ANNs with shortcut connections are created by fann_create_shortcut.

struct fann_layer * first_layer

Pointer to the first layer (input layer) in an array of all the layers, including the input and output layer.

struct fann_layer * last_layer

Pointer to the layer past the last layer in an array of all the layers, including the input and output layer.

unsigned int total_neurons

Total number of neurons. Very useful, because the actual neurons are allocated in one long array.

unsigned int num_input

Number of input neurons (not calculating bias)

unsigned int num_output

Number of output neurons (not calculating bias)

fann_type * train_errors

Used to contain the error deltas used during training Is allocated during first training session, which means that if we do not train, it is never allocated.

unsigned int activation_function_output

Used to choose which activation function to use in the output layer.

unsigned int activation_function_hidden

Used to choose which activation function to use in the hidden layers.

unsigned int activation_steepness_hidden

Parameters for the activation function in the hidden layers.

unsigned int activation_steepness_output

Parameters for the activation function in the output layer.

unsigned int training_algorithm

Training algorithm used when calling fann_train_on_... and fann_train_epoch.

unsigned int decimal point

Fixed point only. The decimal point, used for shifting the fix point in fixed point integer operations.

unsigned int multiplier

Fixed point only. The multiplier, used for multiplying the fix point in fixed point integer operations. Only used in special cases, since the decimal_point is much faster.

fann_type * activation_results_hidden

An array of six members used by some activation functions to hold results for the hidden layer(s).

fann_type * activation_values_hidden

An array of six members used by some activation functions to hold values for the hidden layer(s).

fann_type * activation_results_output

An array of six members used by some activation functions to hold results for the output layer.

fann_type * activation_values_output

An array of six members used by some activation functions to hold values for the output layer.

unsigned int total_connections

Total number of connections. Very useful, because the actual connections are allocated in one long array.

fann_type * output

Used to store outputs in.

unsigned int num_MSE

The number of data used to calculate the mean square error.

float MSE_value

The total error value. The real mean square error is MSE_value/num_MSE.

unsigned int train_error_function

When using this, training is usually faster. Makes the error used for calculating the slopes higher when the difference is higher.

float quickprop_decay

Decay is used to make the weights not go so high.

float quickprop_mu

Mu is a factor used to increase and decrease the step-size.

float rprop_increase_factor

Tells how much the step-size should increase during learning.

float rprop_decrease_factor

Tells how much the step-size should decrease during learning.

float rprop_delta_min

The minimum step-size.

float rprop_delta_max

The maximum step-size.

fann_type * train_slopes

Used to contain the slope errors used during batch training Is allocated during first training session, which means that if we do not train, it is never allocated.

fann_type * prev_steps

The previous step taken by the quickprop/rprop procedures. Not allocated if not used.

fann_type * prev_train_slopes

The slope values used by the quickprop/rprop procedures. Not allocated if not used.


SourceForge.net Logo