Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 380 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 380 Bytes

Softmax Function

Implementation of the softmax function.

Normalize a vector of real numbers into a probability distribution.

npm install softmax-function
yarn add softmax-function
const softmax = require('softmax-function');
softmax([2.0, 1.0, 0.1]);
// ~[0.7, 0.2, 0.1]

License

eveningkid, MIT