diff options
author | jvech <jmvalenciae@unal.edu.co> | 2023-07-24 20:06:05 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2023-07-24 20:06:05 -0500 |
commit | 7710efc305682f35cbc8d69d9b1e5739dbb89f0d (patch) | |
tree | 73cb5939eb3fbdc2f232176e6e61df4bf21c0aca /src/nn.h | |
parent | f2cf742719445a6ac7cea17043d3adbcbc247883 (diff) |
doc: backpropagation notes added
Diffstat (limited to 'src/nn.h')
-rw-r--r-- | src/nn.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -15,12 +15,13 @@ typedef struct Layer { size_t neurons, input_nodes; } Layer; -void nn_layer_init_weights(Layer *layer, size_t nmemb, size_t input_cols); +void nn_layer_init_weights(Layer *layers, size_t nmemb, size_t input_cols); void nn_layer_free_weights(Layer *layer, size_t nmemb); -double * nn_layer_forward(Layer layer, double *input, size_t input_shape[2]); //TODO -double * nn_layer_backward(Layer layer, double *output, size_t out_shape[2]); //TODO +void nn_layer_forward(Layer layer, double *out, size_t out_shape[2], double *input, size_t input_shape[2]); //TODO +void nn_layer_backward(Layer *layer, double *out, size_t out_shape[2]); //TODO double sigmoid(double x); double relu(double x); +double identity(double x); #endif |