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

Go to the source code of this file.

Functions

ANN_INLINE void PCFNN_LAYER_backward_hidden (struct PCFNN_LAYER *l, double eta, double alpha)
 
ANN_INLINE void PCFNN_LAYER_backward_output (struct PCFNN_LAYER *l, double *target, double(*f_cost)(double, double), double eta, double alpha)
 
ANN_INLINE void PCFNN_NETWORK_backward (struct PCFNN_NETWORK *net, double *target, double(*f_cost)(double, double), double eta, double alpha)
 
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...
 
ANN_INLINE void PCFNN_LAYER_apply_delta (struct PCFNN_LAYER *l)
 
void PCFNN_NETWORK_apply_delta (struct PCFNN_NETWORK *net)
 Apply all delta calculated by PCFNN_NETWORK_backprop on the network net. More...
 

Function Documentation

◆ PCFNN_LAYER_apply_delta()

ANN_INLINE void PCFNN_LAYER_apply_delta ( struct PCFNN_LAYER l)

Definition at line 71 of file backprop.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PCFNN_LAYER_backward_hidden()

ANN_INLINE void PCFNN_LAYER_backward_hidden ( struct PCFNN_LAYER l,
double  eta,
double  alpha 
)

Definition at line 9 of file backprop.c.

+ Here is the caller graph for this function:

◆ PCFNN_LAYER_backward_output()

ANN_INLINE void PCFNN_LAYER_backward_output ( struct PCFNN_LAYER l,
double *  target,
double(*)(double, double)  f_cost,
double  eta,
double  alpha 
)

Definition at line 31 of file backprop.c.

+ Here is the caller graph for this function:

◆ PCFNN_NETWORK_apply_delta()

void 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()

void 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:

◆ PCFNN_NETWORK_backward()

ANN_INLINE void PCFNN_NETWORK_backward ( struct PCFNN_NETWORK net,
double *  target,
double(*)(double, double)  f_cost,
double  eta,
double  alpha 
)

Definition at line 53 of file backprop.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: