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 loss function's name. If this function is not called, the loss function will be set to 'mse' by default. See available loss functions Here.
Example
constnn=newDann(4,2);nn.addHiddenLayer(8,'sigmoid');nn.makeWeights();console.log('Before changing the loss function');console.log(nn.lossfunc)nn.setLossFunction('mael');console.log('After changing the loss function');console.log(nn.lossfunc)