1.0.2 • Published 4 years ago

@softnami/softmax-activation v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Softmax Activation

Author: Hussain Mir Ali

This package contains code to run the softmax activation function.

Installation:

npm install @softnami/softmax-activation

Sample usage:

import {SoftmaxActivation} from '@softnami/softmax-activation';

//SoftmaxActivation.process(<input> 4x1, <weights> 1x4);
SoftmaxActivation.process([[2.12], [1.24], [0.12], [3.81]], [[1.23, 3.3, 3.42, 2.34]]).then((data)=>{
    console.log(data);
});

Testing:

  • For unit testing, Mocha and Sinon have been used.
  • Run 'npm test', if timeout occurs then increase timeout in test script

Documentation

  • The documentation is available in the 'out' folder of this project. Open the 'index.html' file under the 'out' folder with Crhome or Firefox.
  • To generate the documentation install yuidocjs globally then run 'yuidoc .' command in the main directory of this project.

Theory

💡 Practice Daily Coding