diff --git a/__pycache__/tsneGrid.cpython-37.pyc b/__pycache__/tsneGrid.cpython-37.pyc index dd0b69c..8d9bc74 100644 Binary files a/__pycache__/tsneGrid.cpython-37.pyc and b/__pycache__/tsneGrid.cpython-37.pyc differ diff --git a/data/iris.csv b/data/iris.csv index 0862df1..7456e9f 100755 --- a/data/iris.csv +++ b/data/iris.csv @@ -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 4.9,3.0,1.4,0.2,Iris-setosa 4.7,3.2,1.3,0.2,Iris-setosa diff --git a/js/tsne_vis.js b/js/tsne_vis.js index 4e9409a..cd4d0ce 100755 --- a/js/tsne_vis.js +++ b/js/tsne_vis.js @@ -197,9 +197,13 @@ function ReSort(flagInitialize) { } else { 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 order = []; SelectedProjections = [] @@ -5279,6 +5283,7 @@ if (points.length) { // If points exist (at least 1 point) //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])[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]){ wrapData2.reverse(); } - + console.log(dataFeatures) var AllPointsWrapData2 = []; for (var i=0; i