diff options
author | jvech <jmvalenciae@unal.edu.co> | 2023-08-05 20:48:21 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2023-08-05 20:48:21 -0500 |
commit | 179613cd790ddf87c3fc501b346f242d17065917 (patch) | |
tree | cb7d6a7dc6bc5b60c9ed19b855be9acab62f7b79 /src/nn.h | |
parent | 21a570b6d98497835785eccf28fc7f16e57ab197 (diff) |
add: bias backward propagation implemented
Diffstat (limited to 'src/nn.h')
-rw-r--r-- | src/nn.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |