From 3f5f1276c134bbe2ae70833085449831e568cfae Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 19 Jun 2022 02:48:10 -0700 Subject: [PATCH] bitten: update bitten.py --- bitten/bitten.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitten/bitten.py b/bitten/bitten.py index b05bc3d..bf64cc9 100644 --- a/bitten/bitten.py +++ b/bitten/bitten.py @@ -262,7 +262,7 @@ class Accuracy(AbstractError): class Crossentropy(AbstractError): - def crossentropy(self, predictions, eps=1e-6): + def _compute(self, predictions, eps=1e-6): p, t = np.clip(predictions, eps, 1 - eps), self.outputs f = np.sum(-t * np.log(p) - (1 - t) * np.log(1 - p), axis=-1) return np.mean(f)