Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

softmax-fn

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Issues
File Explorer

Advanced tools

softmax-fn

Softmax Function

    1.0.8latest

Version published
Maintainers
1
Yearly downloads
12,560
increased by66.91%

Weekly downloads

Changelog

Source

1.0.8

Readme

Source

Softmax Function

The Softmax function

Example

let softmax = require('softmax-fn'); softmax([1]); // [1] softmax([1, 2, 4.3]); // [0.03243497033829723, 0.08816739047720148, 0.8793976391845013]

Installation

$ npm install softmax-fn

API

var softmax = require('softmax-fn');

softmax(values)

  • parameter {number[]} values: A list of numbers ranging from -10 to 10.
  • returns {number[]}: A normalized list of entries between 0 and 1 where the sum is 1.
  • Github: Softmax
  • Github Page: Softmax
  • Wikipedia: Softmax Function

Keywords

FAQs

What is softmax-fn?

Softmax Function

Is softmax-fn popular?

The npm package softmax-fn receives a total of 140 weekly downloads. As such, softmax-fn popularity was classified as not popular.

Is softmax-fn well maintained?

We found that softmax-fn demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 27 Jun 2016
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc