diff options
Diffstat (limited to 'src/nn.h')
-rw-r--r-- | src/nn.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -10,10 +10,14 @@ #include <unistd.h> #include <openblas/cblas.h> +struct Activation { + double (*func)(double); + double (*dfunc)(double); +}; + typedef struct Layer { double *weights, *bias; - double (*activation)(double x); - double (*activation_derivative)(double x); + struct Activation activation; size_t neurons, input_nodes; } Layer; |