v2.4.1c
Fixes
-
Dann.prototype.toFunction
es6 activation functions fixes for browser & node, pointed out by #48. -
Activation functions names are now all lowercase, and activation names specified by the user are passed through
name.toLocaleLowerCase
which allows for mixed cases and backwards compatibility. Feature implemented by @and1can through issue #44 -
Removed
Dann.prototype.losses
since it was used to store loss values if thesaveLoss
option was set to true when callingDann.prototype.backpropagate
. This feature did not need to be built in the library, the prefered way to achieve something like this would be:
let savedLosses = [];
for (...) {
nn.backpropagate(input, output);
savedLosses.push(nn.loss);
}
This allows more control on when to save a loss, as opposed to always have to save a loss value when Dann.prototype.backpropagate
is called with saveLoss
ticked to true.