cbasedann/neurons.h

20 行
無檔案結尾符
504 B
C

#ifndef NEURONS_H
#define NEURONS_H
typedef struct neuron Neuron;
struct neuron
{
float *weights; //weights associated to the neuron
float bias; //neuron's bias
float output; //output of the neuron
float (*activation)(float);
float (*activation_derivative)(float);
float delta_error; //the delta error for updating current weights
Neuron *same_layer_next_neuron;
};
Neuron *init_neuron(int n_weights, char *activation_function);
void destroy_neuron(Neuron *neuron);
#endif