hmkcode / netflow.js

netflow.js repository, javascript library for visualizing neural network structure and training on the browser.
MIT License
21 stars 9 forks source link

Activation function is not used #2

Open olirwin opened 3 years ago

olirwin commented 3 years ago

Seems like the activation function is not called and systematically replacedby f() function.

Tried to do a console log each time the function was called. The log never appeared.

Reproduction :

bettyballin commented 3 years ago

you can fix this by changing line 46 in netflow.js file from this.addLayer = function (n){ to: this.addLayer = function (n, activation){