Comparing version
{ | ||
"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); |
23221
-0.04%