Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

softmax-fn

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

softmax-fn - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

0

dist/softmax.js

@@ -0,0 +0,0 @@

(function(e,n,t){"use strict";function r(e){return this[e]}function u(){return"undefined"!=typeof module&&"undefined"!=typeof module.exports}function i(){return"function"==typeof define&&define.amd}var f=this;if(u()){var o=n.map(require);exports=module.exports=f[e]=t.apply(null,o)}else if(i())define(e,n,function(){var n=f[e]=t.call(null,arguments);return n});else{var a=n.map(r,f);f[e]=t.apply(null,a)}}).call(this||{},"softmax",[],function(){"use strict";function e(e){if(e.map(r),1===e.length)return[1];var u=e.map(Math.exp),i=u.reduce(n,0);return u.map(t,i)}function n(e,n){return e+n}function t(e){return e/this}function r(e){if("number"!=typeof e)throw u(e);switch(e){case 1/0:case-(1/0):case Number.MAX_VALUE:case-Number.MAX_VALUE:throw u(e)}}function u(e){return"Invalid argument specified: "+JSON.stringify(e)}return e});
//# sourceMappingURL=softmax.min.js.map

6

example/index.js

@@ -26,3 +26,3 @@ ((root) => {

</script>`;
commonJsCode.textContent = `let softmax = require('softmax-fn');
commonJsCode.textContent = `let softmax = require('softmax-fn'),
inputs = [${inputsTextBox.value}],

@@ -32,4 +32,4 @@ outputs = softmax(inputs);

amdCode.textContent = `define(['softmax-fn'], function(softmax) {
inputs = [${inputsTextBox.value}],
outputs = softmax(inputs);
let inputs = [${inputsTextBox.value}],
outputs = softmax(inputs);
console.log(outputs);

@@ -36,0 +36,0 @@ });`;

{
"name": "softmax-fn",
"version": "1.0.5",
"version": "1.0.6",
"description": "Softmax Function",

@@ -5,0 +5,0 @@ "main": "dist/softmax.js",

@@ -23,3 +23,3 @@ # Softmax Function

```javascript
let softmax = require('softmax-fn');
let softmax = require('softmax-fn'),
inputs = [1, 2, 4.3],

@@ -33,4 +33,4 @@ outputs = softmax(inputs);

define(['softmax-fn'], function(softmax) {
inputs = [1, 2, 4.3],
outputs = softmax(inputs);
let inputs = [1, 2, 4.3],
outputs = softmax(inputs);
console.log(outputs);

@@ -37,0 +37,0 @@ });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc