Menu

#11 Activation function specification

open
5
2009-10-25
2008-11-13
Anonymous
No

Provide a function pointer in Layer structure to an activation function. This allows users of the libary not only to use the sigmoid activation function, but simply define one themselves. I, for example, used a lineair layer as a buffer, passing a bias to the next layer.

typedef struct {
int no_of_neurons;
neuron_t *neuron;
float (*activation_function)(float);
} layer_t;

Discussion

  • Peter van Rossum

    • assigned_to: nobody --> petervr
     
  • Peter van Rossum

    I's been ages since I looked at lwneuralnet, but this feature will be in the next version (whenever that will be ready). It's already in CVS.

     

Log in to post a comment.