aboutsummaryrefslogtreecommitdiff
path: root/src/nn.h
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2023-08-05 20:48:21 -0500
committerjvech <jmvalenciae@unal.edu.co>2023-08-05 20:48:21 -0500
commit179613cd790ddf87c3fc501b346f242d17065917 (patch)
treecb7d6a7dc6bc5b60c9ed19b855be9acab62f7b79 /src/nn.h
parent21a570b6d98497835785eccf28fc7f16e57ab197 (diff)
add: bias backward propagation implemented
Diffstat (limited to 'src/nn.h')
-rw-r--r--src/nn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nn.h b/src/nn.h
index c07a943..13b5f7c 100644
--- a/src/nn.h
+++ b/src/nn.h
@@ -37,7 +37,7 @@ void nn_forward(
Layer network[], size_t network_size);
void nn_backward(
- double **weights,
+ double **weights, double **bias,
double **zout, double **outs,
double *input, size_t input_shape[2],
double *labels, size_t labels_shape[2],
@@ -51,7 +51,7 @@ void nn_layer_forward(
double *input, size_t input_shape[2]);
void nn_layer_backward(
- double *weights, size_t weigths_shape[2],
+ double *weights, double *bias, size_t weigths_shape[2],
double *delta, double *out_prev,
Layer layer, double alpha);
Feel free to download, copy and edit any repo