From 559696ba31b50af035a2bd82b79fa94ac0df03ee Mon Sep 17 00:00:00 2001 From: cheminfo bot Date: Thu, 2 Jun 2016 09:30:13 +0000 Subject: [PATCH] Release v0.11.2 --- bower.json | 2 +- dist/ml.js | 5 +++++ package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 2c598a3..079552b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "ml", - "version": "0.11.1", + "version": "0.11.2", "main": [ "dist/ml.js", "dist/ml.min.js" diff --git a/dist/ml.js b/dist/ml.js index 5b1419c..d92ceea 100644 --- a/dist/ml.js +++ b/dist/ml.js @@ -16937,6 +16937,11 @@ return /******/ (function(modules) { // webpackBootstrap this.means = means; dataset.subRowVector(means); if (this.scale) { + for (var i = 0; i < stdevs.length; i++) { + if (stdevs[i] === 0) { + throw new RangeError('Cannot scale the dataset (standard deviation is zero at index ' + i); + } + } this.stdevs = stdevs; dataset.divRowVector(stdevs); } diff --git a/package.json b/package.json index b7228df..cc930c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ml", - "version": "0.11.1", + "version": "0.11.2", "description": "Machine learning tools", "main": "src/index.js", "scripts": {