aboutsummaryrefslogtreecommitdiff
path: root/src/nn.h
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2023-08-08 08:55:34 -0500
committerjvech <jmvalenciae@unal.edu.co>2023-08-08 08:55:34 -0500
commitfff35116eed83c9368e8bd07d02c9e95c447e018 (patch)
tree1394111719a7482348b6c871cdac5d856685df01 /src/nn.h
parentaeb27a882087ee447a155bd589bd3712050a16f5 (diff)
add: activation and cost functions added
Training function were fixed and new activation and cost function were implemented
Diffstat (limited to 'src/nn.h')
-rw-r--r--src/nn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nn.h b/src/nn.h
index 40066e3..2fcf9be 100644
--- a/src/nn.h
+++ b/src/nn.h
@@ -11,7 +11,7 @@
#include <openblas/cblas.h>
struct Cost {
- double (*func)(double labels, double net_out);
+ double (*func)(double labels[], double net_out[], size_t shape);
double (*dfunc_out)(double labels, double net_out);
};
Feel free to download, copy and edit any repo