Dannjs v2.4.1.c Release Notes

  • ๐Ÿš€ See release

    ๐Ÿ›  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 the saveLoss option was set to true when calling Dann.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);

    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.