You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

softmax

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

softmax - npm Package Compare versions

Comparing version

to
0.5.0

2

package.json
{
"name": "softmax",
"description": "A softmax multi-armed bandit algorithm",
"version": "0.4.0",
"version": "0.5.0",
"license": "ISC",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -213,4 +213,4 @@ softmax

Currently, this implementation relies on the [native Math.random()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random) which uses a seeded "random" number generator. In addition, the underlying calculations often encounter extended floating point numbers. Arm selection is therefore subject to JavaScript's floating point precision limitations. For general information about floating point issues see the [floating point guide](http://floating-point-gui.de).
This implementation relies on the [native Math.random()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random) which uses a seeded "random" number generator. In addition, the underlying calculations often encounter extended floating point numbers. Arm selection is therefore subject to JavaScript's floating point precision limitations. For general information about floating point issues see the [floating point guide](http://floating-point-gui.de).
While these factors generally do not impede common application, I would consider the implementation suspect in an academic setting.

@@ -8,3 +8,3 @@ /* global describe, it */

describe('#serialize()', function() {
describe('#serialize()', function () {
var Algorithm = require('../../index');

@@ -11,0 +11,0 @@ var arms = _.random(1, 10);