2022-04-01 15:41:54 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <inttypes.h>
|
2022-04-26 11:39:29 +02:00
|
|
|
|
|
|
|
#include "neuron.h"
|
2022-04-01 15:41:54 +02:00
|
|
|
|
|
|
|
#ifndef DEF_NEURON_IO_H
|
|
|
|
#define DEF_NEURON_IO_H
|
|
|
|
|
2022-04-25 14:39:45 +02:00
|
|
|
Neuron* read_neuron(uint32_t nb_weights, FILE *ptr);
|
|
|
|
Neuron** read_neurons(uint32_t nb_neurons, uint32_t nb_weights, FILE *ptr);
|
|
|
|
Network* read_network(char* filename);
|
|
|
|
void ecrire_neuron(Neuron* neuron, int weights, FILE *ptr);
|
2022-05-19 22:26:19 +02:00
|
|
|
void write_network(char* filename, Network* network);
|
|
|
|
void write_delta_network(char* filename, Network* network);
|
2022-04-01 15:41:54 +02:00
|
|
|
|
|
|
|
#endif
|