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.
Creates the weights. This function should be called after all the hidden layers were added. The optional parameters determine the range in which starting weights are going to be set randomly. If no arguments are specified, weights are going to be set in between -1 and 1.
min (optional)
The minimum range value.
max (optional)
The maximum range value.
Example
constnn=newDann(2,2);// initiate the Weightsnn.makeWeights();// log weightsnn.log({weights:true,table:true});// add a layer & re-initiate weights in a range of (-0.1,0.1)nn.addHiddenLayer(4,'sigmoid');nn.makeWeights(-0.1,0.1);// log weightsconsole.log('New re-initiated weights:')nn.log({weights:true,table:true});