From fff35116eed83c9368e8bd07d02c9e95c447e018 Mon Sep 17 00:00:00 2001 From: jvech Date: Tue, 8 Aug 2023 08:55:34 -0500 Subject: add: activation and cost functions added Training function were fixed and new activation and cost function were implemented --- src/nn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nn.h') 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 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); }; -- cgit v1.2.3-70-g09d2