Comparing version 1.0.5 to 1.0.6
@@ -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 |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25290