2022-04-01 15:41:54 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2022-04-25 10:29:36 +02:00
|
|
|
#include <stdint.h>
|
2022-04-01 15:41:54 +02:00
|
|
|
#include <string.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#include "struct/neuron.h"
|
|
|
|
|
|
|
|
#ifndef DEF_NEURAL_NETWORK_H
|
|
|
|
#define DEF_NEURAL_NETWORK_H
|
|
|
|
|
2022-04-05 09:08:39 +02:00
|
|
|
float max(float a, float b);
|
|
|
|
float sigmoid(float x);
|
2022-04-25 14:39:45 +02:00
|
|
|
float sigmoid_derivative(float x);
|
2022-04-18 17:49:50 +02:00
|
|
|
float leaky_ReLU(float x);
|
2022-04-25 14:39:45 +02:00
|
|
|
float leaky_ReLU_derivative(float x);
|
|
|
|
void network_creation(Network* network_neuronal, int* neurons_per_layer, int nb_layers);
|
|
|
|
void deletion_of_network(Network* network_neuronal);
|
|
|
|
void forward_propagation(Network* network_neuronal);
|
|
|
|
int* desired_output_creation(Network* network_neuronal, int wanted_number);
|
|
|
|
void backward_propagation(Network* network_neuronal, int* desired_output);
|
|
|
|
void network_modification(Network* network_neuronal, uint32_t nb_modifs);
|
|
|
|
void network_initialisation(Network* network_neuronal);
|
|
|
|
float loss_computing(Network* network, int numero_voulu);
|
2022-04-01 15:41:54 +02:00
|
|
|
|
|
|
|
#endif
|