From 3cff6e61850813958e706aa1a271c6be276ae265 Mon Sep 17 00:00:00 2001 From: Ahmet Can Aydemir Date: Sat, 23 Jan 2021 22:14:33 +0300 Subject: [PATCH] Added missing param to addLayer function There is an example in README.md for adding activation function. But activation function was accepting only one parameter. "net.addLayer(2, ReLu); // hidden with activation function" --- netflow/js/core/netflow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netflow/js/core/netflow.js b/netflow/js/core/netflow.js index 9a88d3c..40bbbe0 100644 --- a/netflow/js/core/netflow.js +++ b/netflow/js/core/netflow.js @@ -43,9 +43,9 @@ function setup() { this.width = 0; this.training = null; - this.addLayer = function (n){ + this.addLayer = function (n, activation){ - var layer = new Layer(n); + var layer = new Layer(n, activation); layer.type = "OUTPUT"; if(this.size == 0) layer.type = "INPUT";