Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eveningkid/softmax-function
- Owner: eveningkid
- Created: 2019-05-15T03:24:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-15T03:34:48.000Z (over 5 years ago)
- Last Synced: 2024-10-23T04:36:13.037Z (2 months ago)
- Topics: exponential, function, normalized, softargmax, softmax
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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