PandA-2024.02
backprop.h
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <math.h>
4 #include "../../common/support.h"
5 
6 // Fixed parameters
7 #define input_dimension 13
8 #define possible_outputs 3
9 #define training_sets 163
10 #define nodes_per_layer 64
11 #define layers 2
12 #define learning_rate 0.01
13 #define epochs 1
14 #define test_sets 15
15 #define norm_param 0.005
16 
17 #define max 1.0
18 #define offset 0.5
19 
20 //Data Bounds
21 #define TYPE double
22 #define MAX 1000
23 #define MIN 1
24 
25 void backprop(
27  TYPE weights2[nodes_per_layer*nodes_per_layer],
28  TYPE weights3[nodes_per_layer*possible_outputs],
29  TYPE biases1[nodes_per_layer],
30  TYPE biases2[nodes_per_layer],
31  TYPE biases3[possible_outputs],
33  TYPE training_targets[training_sets*possible_outputs]);
35 // Test harness interface code.
36 
37 struct bench_args_t {
46 };
#define input_dimension
Definition: backprop.h:7
#define TYPE
Definition: backprop.h:21
TYPE weights1[input_dimension *nodes_per_layer]
Definition: backprop.h:38
#define training_sets
Definition: backprop.h:9
TYPE biases3[possible_outputs]
Definition: backprop.h:43
#define possible_outputs
Definition: backprop.h:8
TYPE biases2[nodes_per_layer]
Definition: backprop.h:42
TYPE training_targets[training_sets *possible_outputs]
Definition: backprop.h:45
TYPE weights2[nodes_per_layer *nodes_per_layer]
Definition: backprop.h:39
TYPE biases1[nodes_per_layer]
Definition: backprop.h:41
TYPE weights3[nodes_per_layer *possible_outputs]
Definition: backprop.h:40
#define nodes_per_layer
Definition: backprop.h:10
void backprop(TYPE weights1[input_dimension *nodes_per_layer], TYPE weights2[nodes_per_layer *nodes_per_layer], TYPE weights3[nodes_per_layer *possible_outputs], TYPE biases1[nodes_per_layer], TYPE biases2[nodes_per_layer], TYPE biases3[possible_outputs], TYPE training_data[training_sets *input_dimension], TYPE training_targets[training_sets *possible_outputs])
Definition: backprop.c:239
TYPE training_data[training_sets *input_dimension]
Definition: backprop.h:44

Generated on Mon Feb 12 2024 13:02:49 for PandA-2024.02 by doxygen 1.8.13