From a3335def4242740d51db181d8201b0a46ff7693a Mon Sep 17 00:00:00 2001 From: Matias Vazquez-Levi <50473168+matiasvlevi@users.noreply.github.com> Date: Thu, 17 Sep 2020 21:39:15 -0400 Subject: [PATCH] Update dann.js --- dann.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dann.js b/dann.js index 483cb7e0..94436b36 100644 --- a/dann.js +++ b/dann.js @@ -117,8 +117,8 @@ class Dann { let layer = new Matrix(size,1); this.Layers.splice(this.Layers.length-1,0,layer); if (act !== undefined) { - this.aFunc[this.Layers.length-1] = JSON.parse(act); - this.aFunc_d[this.Layers.length-1] = JSON.parse(act + "_d"); + this.aFunc[this.Layers.length-1] = JSON.parse(act + "()"); + this.aFunc_d[this.Layers.length-1] = JSON.parse(act + "_d()"); } } calcMeanLossError(arr,target) {