Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eveningkid/softmax-function

Softmax function, normalize a vector of real numbers into a probability distribution
https://github.com/eveningkid/softmax-function

exponential function normalized softargmax softmax

Last synced: 14 days ago
JSON representation

Softmax function, normalize a vector of real numbers into a probability distribution

Awesome Lists containing this project

README

        

# Softmax Function
Implementation of the [softmax function](https://en.wikipedia.org/wiki/Softmax_function).

Normalize a vector of real numbers into a probability distribution.

```bash
npm install softmax-function
yarn add softmax-function
```

```js
const softmax = require('softmax-function');
softmax([2.0, 1.0, 0.1]);
// ~[0.7, 0.2, 0.1]
```

## License
eveningkid, MIT