ANN  0.1.1.5
A library containing multiple neural network models written in C
file.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include "ANN/models/PCFNN/neuron.h"
#include "ANN/models/PCFNN/layer.h"
#include "ANN/models/PCFNN/network.h"
#include "ANN/models/PCFNN/file.h"
+ Include dependency graph for file.c:

Go to the source code of this file.

Functions

int PCFNN_NETWORK_save_conf (struct PCFNN_NETWORK *net, FILE *fout)
 Save bias and weights of each neurons of net in fout. More...
 
int PCFNN_NETWORK_load_conf (struct PCFNN_NETWORK *net, FILE *fin)
 Load bias and weights of each neurons of net from fin. More...
 

Function Documentation

◆ PCFNN_NETWORK_load_conf()

int PCFNN_NETWORK_load_conf ( struct PCFNN_NETWORK net,
FILE *  fin 
)

Load bias and weights of each neurons of net from fin.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK
[in]fin(FILE*) stream on file with read permission
Returns
1 if done or -1 if an error occured

Definition at line 25 of file file.c.

◆ PCFNN_NETWORK_save_conf()

int PCFNN_NETWORK_save_conf ( struct PCFNN_NETWORK net,
FILE *  fout 
)

Save bias and weights of each neurons of net in fout.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK
[in]fout(FILE*) stream on file with write permission
Returns
1 if done or -1 if an error occured

Definition at line 10 of file file.c.