fixed metrics

Former-commit-id: 5d8d48fbf9
master
parent d6a2ac08f4
commit a2fb21264f
  1. BIN
      __pycache__/tsneGrid.cpython-37.pyc
  2. 2
      data/iris.csv
  3. 10
      js/tsne_vis.js

@ -1,4 +1,4 @@
"sepal_l","sepal_w","petal_l","petal_w","Species*" "sepal_length","sepal_width","petal_length","petal_width","Species*"
5.1,3.5,1.4,0.2,Iris-setosa 5.1,3.5,1.4,0.2,Iris-setosa
4.9,3.0,1.4,0.2,Iris-setosa 4.9,3.0,1.4,0.2,Iris-setosa
4.7,3.2,1.3,0.2,Iris-setosa 4.7,3.2,1.3,0.2,Iris-setosa

1 sepal_l sepal_length sepal_w sepal_width petal_l petal_length petal_w petal_width Species*
2 5.1 3.5 1.4 0.2 Iris-setosa
3 4.9 3.0 1.4 0.2 Iris-setosa
4 4.7 3.2 1.3 0.2 Iris-setosa

@ -197,9 +197,13 @@ function ReSort(flagInitialize) {
} else { } else {
labelsTarget = uniqueTarget labelsTarget = uniqueTarget
} }
if(flagInitialize) {
var optionMetricOver = document.getElementById("param-SortMOver-view").value; // Get the threshold value with which the user set's the boundaries of the schema investigation
$('#param-SortM-view').val(optionMetricOver).change();
}
var optionMetric = document.getElementById("param-SortM-view").value; // Get the threshold value with which the user set's the boundaries of the schema investigation var optionMetric = document.getElementById("param-SortM-view").value; // Get the threshold value with which the user set's the boundaries of the schema investigation
var order = []; var order = [];
SelectedProjections = [] SelectedProjections = []
@ -5279,6 +5283,7 @@ if (points.length) { // If points exist (at least 1 point)
//if (m == j){ //if (m == j){
Object.assign(data,{[Object.keys(dataFeatures[selectedPoints[i].id])[indices[m]]]:parseFloat(Object.values(dataFeatures[selectedPoints[i].id])[indices[m]]).toFixed(1)}); // Push the values into the pcp Object.assign(data,{[Object.keys(dataFeatures[selectedPoints[i].id])[indices[m]]]:parseFloat(Object.values(dataFeatures[selectedPoints[i].id])[indices[m]]).toFixed(1)}); // Push the values into the pcp
//Object.assign(data,{[Object.keys(dataFeatures[selectedPoints[i].id])[m]]:parseFloat(Object.values(dataFeatures[selectedPoints[i].id])[m]).toFixed(1)}); // Push the values into the pcp //Object.assign(data,{[Object.keys(dataFeatures[selectedPoints[i].id])[m]]:parseFloat(Object.values(dataFeatures[selectedPoints[i].id])[m]).toFixed(1)}); // Push the values into the pcp
//}
} }
} }
} }
@ -5309,7 +5314,7 @@ if (points.length) { // If points exist (at least 1 point)
if (lessmore[0] < lessmore[1]){ if (lessmore[0] < lessmore[1]){
wrapData2.reverse(); wrapData2.reverse();
} }
console.log(dataFeatures)
var AllPointsWrapData2 = []; var AllPointsWrapData2 = [];
for (var i=0; i<points.length; i++){ for (var i=0; i<points.length; i++){
var data = []; var data = [];
@ -5330,6 +5335,7 @@ if (points.length) { // If points exist (at least 1 point)
//if (m == j){ //if (m == j){
Object.assign(data,{[Object.keys(dataFeatures[points[i].id])[indices[m]]]:parseFloat(Object.values(dataFeatures[points[i].id])[indices[m]]).toFixed(1)}); // Push the values into the pcp Object.assign(data,{[Object.keys(dataFeatures[points[i].id])[indices[m]]]:parseFloat(Object.values(dataFeatures[points[i].id])[indices[m]]).toFixed(1)}); // Push the values into the pcp
//Object.assign(data,{[Object.keys(dataFeatures[points[i].id])[m]]:parseFloat(Object.values(dataFeatures[points[i].id])[m]).toFixed(1)}); // Push the values into the pcp //Object.assign(data,{[Object.keys(dataFeatures[points[i].id])[m]]:parseFloat(Object.values(dataFeatures[points[i].id])[m]).toFixed(1)}); // Push the values into the pcp
//}
} }
} }
} }

Loading…
Cancel
Save