cbasedann/network.h

18 lines
No EOL
628 B
C

#ifndef NETWORK_H
#define NETWORK_H
typedef struct network Network;
struct network
{
int n_layers;
int *neurons_per_layer; //keeps track of number of layers' neurons
Neuron **layers_first_neurons; //pointers on first neuron of each layer of the network
//Neuron *layers_last_neurons; //last neuron of each layer of the network
};
Neuron *generate_layer(int n_neurons, int n_neurons_prev_layer, char *activation_function);
Network *init_network(int n_neurons_per_layer[], int n_layers, char *activation_function_per_layer[]);
void print_network(Network *network);
void destroy_network(Network *network);
#endif