Skip to content

Commit

Permalink
Merge pull request qminer#3 from qminer/master
Browse files Browse the repository at this point in the history
merge upstream
  • Loading branch information
bergloman authored Jul 31, 2018
2 parents ca21594 + 406825d commit 291698a
Show file tree
Hide file tree
Showing 91 changed files with 589 additions and 830 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ addons:
packages: [ 'gcc-4.8', 'g++-4.8', 'gcc-4.8-multilib', 'g++-4.8-multilib', 'libc6-dev-i386', 'linux-libc-dev:i386' ]

node_js:
- 6
- 8
- 10

env:
- CXXFLAGS=-std=c++0x CC=gcc-4.8 CXX=g++-4.8

matrix:
include:
- node_js: 4
- node_js: 6
env: LLVM_VERSION=3.6.0 CXXFLAGS=-std=c++0x CXX=clang++ CC=clang NPMOPT=--clang=1 QMDEBUG=--debug

cache:
Expand Down Expand Up @@ -56,8 +55,7 @@ script:
- npm install -g mocha
- npm install -g mustache
- ./tools/genExampleTests.sh
- ./test/nodejs/test.sh
- ./test/cpp/test.sh
- npm test

os: linux
notifications:
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# QMiner Change Log

## 10 July 2018

**Version 9.2.3**

**Non-breaking with bug fixes**

Bugfix:
- Fixed GCC compile warnings
- Fixed JSON escaping
- Added Node.js 10 to CI
- Fixed quantile CDF functions
- Fixed standard deviation function (better handling of edge cases)
- TMem got slimmer (16 bytes instead of 24 bytes!)
- Fixed running of `npm test`


## 20 April 2018

**Version 9.2.2**
Expand All @@ -13,6 +29,7 @@ Bugfix:
- TMem got slimmer (24 bytes instead of 32 bytes!)
- Fixed how exceptions are handled in `fs.readLines`


## 13 April 2018

**Verstion 9.2.1**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ hardware, providing efficient storage, retrieval and analytics mechanisms with r

### Prerequisites

**node.js v8.x, v6.x, v4.x and npm 5.3 or higher**
**node.js v 10.x, v8.x, v6.x and npm 5.3 or higher**

To test that your node.js version is correct, run ```node --version``` and ```npm --version```. Not compatible with nodejs v0.10 or older.

Expand Down
7 changes: 3 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
environment:
matrix:
- nodejs_version: "4"
- nodejs_version: "9"
- nodejs_version: "8"
- nodejs_version: "10"

platform:
- x64
Expand Down Expand Up @@ -29,8 +29,7 @@ build_script:
- cd tools
- genExampleTests.bat
- cd ..
- .\test\nodejs\test.bat

- npm test

test: off
deploy: off
10 changes: 5 additions & 5 deletions nodedoc/analyticsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2545,8 +2545,8 @@
* Provided a given value or array of values it returns the corresponding
* values of the cumulative distribution function.
*
* @param {number|Array} pVals - the p-values which we a querying
* @returns {number|Array} quantiles - depending whether the input was a single value or array the method returns a quantile or array of quantiles
* @param {number|Array} vals - the values which we a querying (quantiles)
* @returns {number|Array} pVals - depending whether the input was a single value or array the method returns a probability or array of probabilities
*
* @example
* var qm = require('qminer');
Expand All @@ -2560,9 +2560,9 @@
* gk.insert(3.0);
* gk.insert(2.0);
*
* console.log(gk.cdf(0.01)); // prints the CDF for x = 0.01
* console.log(gk.cdf(10)); // prints the CDF for x = 10
* console.log(gk.cdf(100)); // prints the CDF for x = 100
* console.log(gk.cdf(0)); // prints the CDF for x = 0
* console.log(gk.cdf(2)); // prints the CDF for x = 2
* console.log(gk.cdf(4)); // prints the CDF for x = 4
*/
exports.Gk.prototype.cdf = function (x) { return 0; }
/**
Expand Down
10 changes: 5 additions & 5 deletions nodedoc/analyticsdoc.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -2575,8 +2575,8 @@ <h1>Source: analyticsdoc.js</h1>
* Provided a given value or array of values it returns the corresponding
* values of the cumulative distribution function.
*
* @param {number|Array} pVals - the p-values which we a querying
* @returns {number|Array} quantiles - depending whether the input was a single value or array the method returns a quantile or array of quantiles
* @param {number|Array} vals - the values which we a querying (quantiles)
* @returns {number|Array} pVals - depending whether the input was a single value or array the method returns a probability or array of probabilities
*
* @example
* var qm = require(&#x27;qminer&#x27;);
Expand All @@ -2590,9 +2590,9 @@ <h1>Source: analyticsdoc.js</h1>
* gk.insert(3.0);
* gk.insert(2.0);
*
* console.log(gk.cdf(0.01)); // prints the CDF for x = 0.01
* console.log(gk.cdf(10)); // prints the CDF for x = 10
* console.log(gk.cdf(100)); // prints the CDF for x = 100
* console.log(gk.cdf(0)); // prints the CDF for x = 0
* console.log(gk.cdf(2)); // prints the CDF for x = 2
* console.log(gk.cdf(4)); // prints the CDF for x = 4
*/
exports.Gk.prototype.cdf = function (x) { return 0; }
/**
Expand Down
4 changes: 2 additions & 2 deletions nodedoc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down Expand Up @@ -467,7 +467,7 @@ <h2 id="analytics.Gk">analytics.Gk</h2>
<dd>
</dd>
<dt class="symbol-index-name">
<a href="module-analytics.Gk.html#cdf" class="!symbol-index-name">analytics.<wbr>Gk#<wbr>cdf(pVals)</a>
<a href="module-analytics.Gk.html#cdf" class="!symbol-index-name">analytics.<wbr>Gk#<wbr>cdf(vals)</a>
</dt>
<dd>
</dd>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-ActiveLearner.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-metrics.ClassificationScore.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-metrics.MeanAbsoluteError.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-metrics.MeanError.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-metrics.MeanSquareError.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-metrics.PredictionCurve.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-metrics.R2Score.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-metrics.RootMeanSquareError.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-metrics.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-preprocessing.Binarizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics-preprocessing.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics.BiasedGk.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics.BufferedTDigest.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics.DpMeans.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
18 changes: 9 additions & 9 deletions nodedoc/module-analytics.Gk.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down Expand Up @@ -88,7 +88,7 @@ <h2 class="summary-callout-heading">Methods</h2>
<dt><a href="module-analytics.Gk.html#.save">save(fout)</a></dt>
<dd>
</dd>
<dt><a href="module-analytics.Gk.html#cdf">cdf(pVals)</a></dt>
<dt><a href="module-analytics.Gk.html#cdf">cdf(vals)</a></dt>
<dd>
</dd>
</dl>
Expand Down Expand Up @@ -382,7 +382,7 @@ <h4>Parameter</h4>
<p><code><a href="module-fs.FOut.html">module:fs.FOut</a></code>&nbsp;- the output stream</p>
</dd>
</dl>
<h3 id="cdf"><span class="symbol-name">cdf</span><span class="signature"><span class="signature-params">(pVals)</span>&nbsp;&rarr; <span class="signature-returns"> (number or Array)</span></span></h3>
<h3 id="cdf"><span class="symbol-name">cdf</span><span class="signature"><span class="signature-params">(vals)</span>&nbsp;&rarr; <span class="signature-returns"> (number or Array)</span></span></h3>
<p>Provided a given value or array of values it returns the corresponding values of the cumulative distribution function.</p>
<section>
<h4>
Expand All @@ -400,9 +400,9 @@ <h4>
gk.insert(3.0);
gk.insert(2.0);

console.log(gk.cdf(0.01)); // prints the CDF for x = 0.01
console.log(gk.cdf(10)); // prints the CDF for x = 10
console.log(gk.cdf(100)); // prints the CDF for x = 100</code></pre>
console.log(gk.cdf(0)); // prints the CDF for x = 0
console.log(gk.cdf(2)); // prints the CDF for x = 2
console.log(gk.cdf(4)); // prints the CDF for x = 4</code></pre>
</div>
</section>
<section>
Expand All @@ -419,7 +419,7 @@ <h4>Parameter</h4>
<tbody>
<tr>
<td>
<p>pVals</p>
<p>vals</p>
</td>
<td>
<p>(number or Array)</p>
Expand All @@ -428,7 +428,7 @@ <h4>Parameter</h4>
<p>&nbsp;</p>
</td>
<td>
<p>the p-values which we a querying</p>
<p>the values which we a querying (quantiles)</p>
</td>
</tr>
</tbody>
Expand All @@ -437,7 +437,7 @@ <h4>Parameter</h4>
<dl class="dl-compact">
<dt>Returns</dt>
<dd>
<p><code>(number or Array)</code>&nbsp;quantiles - depending whether the input was a single value or array the method returns a quantile or array of quantiles</p>
<p><code>(number or Array)</code>&nbsp;pVals - depending whether the input was a single value or array the method returns a probability or array of probabilities</p>
</dd>
</dl>
<h3 id="getParams"><span class="symbol-name">getParams</span><span class="signature"><span class="signature-params">()</span>&nbsp;&rarr; <span class="signature-returns"> module:analytics.quantiles~GkParam</span></span></h3>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics.KMeans.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics.LogReg.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics.MDS.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics.NNet.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion nodedoc/module-analytics.NearestNeighborAD.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.2</a>
<a href="index.html" class="jsdoc-navbar-package-name">QMiner JavaScript API v9.2.4</a>
</div>
</div>
</nav>
Expand Down
Loading

0 comments on commit 291698a

Please sign in to comment.