From 4b7986b96905999d49ba023a5415165fc2a12133 Mon Sep 17 00:00:00 2001 From: Angelos Chatzimparmpas Date: Thu, 7 Mar 2019 17:59:43 +0100 Subject: [PATCH] correlastion squared Former-commit-id: 486a84934fce1d030038e3db821b1afedd338598 --- index.html | 4 ++-- js/tsne_vis.js | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 620ec1b..13981d7 100755 --- a/index.html +++ b/index.html @@ -126,7 +126,7 @@
-

Correl. Schema Investigation

+

Schema Investigation (Coefficient of Determination)

@@ -197,7 +197,7 @@
-

Parallel Coordinates Plot with Local PCA Calculation

+

Parallel Coordinates Plot (with Local PCA Calculation)

diff --git a/js/tsne_vis.js b/js/tsne_vis.js index ad304c3..4d1ae0b 100755 --- a/js/tsne_vis.js +++ b/js/tsne_vis.js @@ -1699,7 +1699,7 @@ function CalculateCorrel(flagForSchema){ // Calculate the correlation is a funct if (isNaN(pearsonCorrelation(tempData, 0, 1))) { } else{ SignStore.push([temp, pearsonCorrelation(tempData, 0, 1)]); // Keep the sign - correlationResults.push([Object.keys(dataFeatures[0])[temp] + " (" + temp + ")", Math.abs(pearsonCorrelation(tempData, 0, 1)),temp]); // Find the pearson correlations + correlationResults.push([Object.keys(dataFeatures[0])[temp] + " (" + temp + ")", Math.abs(pearsonCorrelation(tempData, 0, 1))*Math.abs(pearsonCorrelation(tempData, 0, 1)),temp]); // Find the pearson correlations } } } @@ -1725,7 +1725,7 @@ function CalculateCorrel(flagForSchema){ // Calculate the correlation is a funct correlationResultsFinal = []; for (var i=0; i