Fixed the kNN barchart

Former-commit-id: 2629293109
master
parent ce1ca79887
commit 371eb0c78e
  1. 1
      Previously_Executed_Analyses_Files/Bank_Projection.txt
  2. 1
      Previously_Executed_Analyses_Files/Bank_Projection.txt.REMOVED.git-id
  3. 3266
      data/bank-additional_s.csv
  4. 12
      js/tsne_vis.js
  5. 2
      modules/d3-star/d3-starPlot.js

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

@ -1572,7 +1572,7 @@ function CalculateCorrel(){ // Calculate the correlation is a function which has
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))]); // Find the pearson correlations
correlationResults.push([Object.keys(dataFeatures[0])[temp] + " (" + temp + ")", Math.abs(pearsonCorrelation(tempData, 0, 1)),temp]); // Find the pearson correlations
}
}
}
@ -1587,12 +1587,10 @@ function CalculateCorrel(){ // Calculate the correlation is a function which has
for (var j = 0; j < correlationResults.length; j++) {
for (var i = 0; i < SignStore.length; i++) {
if (SignStore[i][1]*(-1) == correlationResults[j][1]) {
correlationResults[j][1] = (correlationResults[j][1]).toFixed(4) * (-1); // Give the negative sign if needed and multiply by 100
correlationResults[j].push(j);
correlationResults[j][1] = (correlationResults[j][1]).toFixed(2) * (-1); // Give the negative sign if needed and multiply by 100
}
if (SignStore[i][1] == correlationResults[j][1]) {
correlationResults[j][1] = (correlationResults[j][1]).toFixed(4); // Give a positive sign and multiply by 100
correlationResults[j].push(j);
correlationResults[j][1] = (correlationResults[j][1]).toFixed(2); // Give a positive sign and multiply by 100
}
}
}
@ -1606,13 +1604,13 @@ function CalculateCorrel(){ // Calculate the correlation is a function which has
}
var maxminArea = [];
for (var i=0; i<ArrayContainsDataFeaturesClearedwithoutNull[0].length; i++){
for (var i=0; i<ArrayContainsDataFeaturesLimit[0].length; i++){
maxminArea.push(getMinMaxOf2DIndex(ArrayContainsDataFeaturesLimit, i));
}
if (PreComputFlagCorrelation){
maxminTotal = [];
for (var i=0; i<ArrayContainsDataFeaturesClearedwithoutNull[0].length; i++){
for (var i=0; i<ArrayContainsDataFeaturesCleared[0].length; i++){
maxminTotal.push(getMinMaxOf2DIndex(ArrayContainsDataFeaturesCleared, i));
}
PreComputFlagCorrelation = false;

@ -12,7 +12,7 @@ function RadarChart(id, data, color, IDS, options) {
margin: {top: 20, right: 20, bottom: 20, left: 20}, //The margins of the SVG
levels: 3, //How many levels or inner circles should there be drawn
maxValue: 1, //What is the value that the biggest circle will represent
labelFactor: 1.3, //How much farther than the radius of the outer circle should the labels be placed
labelFactor: 1.28, //How much farther than the radius of the outer circle should the labels be placed
wrapWidth: 100, //The number of pixels after which a label needs to be given a new line
opacityArea: 0.35, //The opacity of the area of the blob
dotRadius: 4, //The size of the colored circles of each blog

Loading…
Cancel
Save