You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
Takes a string of the activation function's name. If left empty, the activation function will be set to 'sigmoid' by default. See available activation functions Here.
Example
constnn=newDann(10,2);//Add a layernn.addHiddenLayer(8,'sigmoid');//console logconsole.log('Added first hidden layer: ')nn.log({struct:true});//Add a layernn.addHiddenLayer(4,'tanH');//console logconsole.log('Added a second hidden layer: ')nn.log({struct:true});