Defined Types



nnNeuronCount_t

typedef unsigned int nnNeuronCount_t; 

nnNeuronData_t

typedef double nnNeuronData_t; 

used for neuron calculations
including neuron inputs, outputs, weights, errors, rest states, etc...


nnActivationFunction_t

callback type for custom activation functions
typedef void (*nnActivationFunction_t) (
    nnNeuronData_t*); 

a pointer to the sum of the weights times inputs will be passed into the function, which should operate on that value "in place"


nnActivationDerivative_t

callback type for calculation the derivative of a custom activation functions
typedef nnNeuronData_t (*nnActivationDerivative_t)(
    nnNeuronData_t ); 

should return the derivative of the value passed in


nnAnnealingFunction_t

callback type for custom annealing functions
typedef void (*nnAnnealingFunction_t) (
    nnNeuronData_t* learningRate,
    nnNeuronData_t* annealingRate,
    nnNeuronCount_t generation); 

a pointer to the network's learning rate and annealing rate are passed in, and may be operated upon directly. The current generation is also passed, which starts at 0 for every call to nnTrain()

© Michael Krzyzaniak (Last Updated 11/13/2011)