ANN  0.1.1.5
A library containing multiple neural network models written in C
backprop.h File Reference

PCFNN_BACKPROP. More...

#include "../../config.h"
#include <stdlib.h>
#include "neuron.h"
#include "layer.h"
#include "network.h"
+ Include dependency graph for backprop.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void PCFNN_NETWORK_backprop (struct PCFNN_NETWORK *net, double *target, double eta, double alpha, double(*f_cost)(double, double))
 Run the Backpropagation Algorithm on the network net. More...
 
void PCFNN_NETWORK_apply_delta (struct PCFNN_NETWORK *net)
 Apply all delta calculated by PCFNN_NETWORK_backprop on the network net. More...
 

Detailed Description

PCFNN_BACKPROP.

Author
Cedric FARINAZZO
Version
0.1
Date
5 may 2019

Backpropagation functions for PCFNN neural network

Definition in file backprop.h.

Function Documentation

◆ PCFNN_NETWORK_apply_delta()

PCFNN_NETWORK_apply_delta ( struct PCFNN_NETWORK net)

Apply all delta calculated by PCFNN_NETWORK_backprop on the network net.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK

Definition at line 85 of file backprop.c.

+ Here is the call graph for this function:

◆ PCFNN_NETWORK_backprop()

PCFNN_NETWORK_backprop ( struct PCFNN_NETWORK net,
double *  target,
double  eta,
double  alpha,
double(*)(double, double)  f_cost 
)

Run the Backpropagation Algorithm on the network net.

Parameters
[in]net(struct PCFNN_NETWORK*) a pointer an a PCFNN_NETWORK
[in]target(double*) double array: expected output of the output layer of net
[in]eta(double) learning rate
[in]alpha(double) momentum rate
[in]f_cost(double(*f_cost)(double, double)) a cost function pointer

Definition at line 64 of file backprop.c.

+ Here is the call graph for this function: