Click or drag to resize

Neural Network

This topic contains the following sections:

This section describes neural network models. Library supports next neural network types:

Activation function

The neural network model in the library utilizes the fast sigmoid activation function in all except last layers: NN Activation Fast.

The last layer uses linear activation function: NN Activation Linear.

Loss Function

By default the neural network models uses Cross Entropy for loss function estimation:

NN Loss Cross Entropy

Also library allows to user set custom loss function. (See the CustomLoss property.)

Regularization

By default model training procedure uses L1 regularization with default weight equals to 0.0001.

Termination Function

The default model stops training if the best objective value do not improves on more than 0.00001 in last 100 train steps.

But the user can adjust them with any OR combination of the next conditions:

In any case user can specify his own train stop delegate function via the TerminationDelegate property.

Implementation

Next most important properties are featured in the FFNet class:

Property

Description

PropertyClasses

The list of classes in the model

PropertyTopology

The neural network model topology

PropertyRegularisation

Neural network L1 regularization parameter.

Termination conditions properties:

Property

Description

PropertyTerminationIterations

The maximum optimization iterations number. Zero means infinite iterations.

PropertyTerminationTimeout

The optimization algorithm timeout: the execution will be interrupted on the next step after the timeout expiration.

PropertyTerminationObjectiveChange

Objective function change stop criterion. Null means no objective change termination conditions.

PropertyTerminationDelegate

Custom stop criterion function.

Train statistics properties:

Property

Description

PropertyTrainBestValue

Last Train or Update operation best objective value.

PropertyTrainBestIteration

Last Train or Update operation best step index.

PropertyTrainTotalIterations

Last Train or Update operation total steps number.

See Also