parent cf4093e3f7
commit 6a56a44eaa
  1. BIN
      __pycache__/run.cpython-38.pyc
  2. 17
      frontend/src/components/FeatureSpaceDetail.vue
  3. 18
      frontend/src/components/Heatmap.vue
  4. 3
      frontend/src/components/Main.vue
  5. 2
      frontend/src/components/Results.vue
  6. 2
      run.py

Binary file not shown.

@ -122,6 +122,7 @@ export default {
var VIFRemainingLoc = [] var VIFRemainingLoc = []
var MIRemainingLoc = [] var MIRemainingLoc = []
var pushEachFinal = [] var pushEachFinal = []
this.dataFSTrans.forEach(function(element, index) { this.dataFSTrans.forEach(function(element, index) {
var round = element.round var round = element.round
round = JSON.parse(round[loop-1]) round = JSON.parse(round[loop-1])
@ -223,7 +224,7 @@ export default {
var quadrantNumberLocal = this.quadrantNumber var quadrantNumberLocal = this.quadrantNumber
var listofNodes = this.dataFS[34] var listofNodes = this.dataFS[34]
var dataLoc = JSON.parse(this.dataFS[3+quadrantNumberLocal]) var dataLoc = JSON.parse(this.dataFS[3+quadrantNumberLocal])
var pushEachFinal = [] var pushEachFinal = []
var pushEach var pushEach
var oldVal var oldVal
@ -348,7 +349,7 @@ export default {
Object.entries(dataLoc).forEach( Object.entries(dataLoc).forEach(
function ([feature, value]) { function ([feature, value]) {
Object.entries(value).forEach( function ([featureInside, value]) { Object.entries(value).forEach( function ([featureInside, value]) {
if (feature != featureInside) { if (feature != featureInside) {
if (value >= threshLoc) { if (value >= threshLoc) {
links.push({"source": listofNodes.indexOf(feature), "target": listofNodes.indexOf(featureInside), "value": Math.abs(value) * 30, "lin_color": "#D3D3D3"}) links.push({"source": listofNodes.indexOf(feature), "target": listofNodes.indexOf(featureInside), "value": Math.abs(value) * 30, "lin_color": "#D3D3D3"})
} else { } else {
@ -369,15 +370,14 @@ export default {
) )
}) })
var lengthFeatureAddRem = this.featureAddRemCount.length
Object.entries(pushEachFinal).forEach( Object.entries(pushEachFinal).forEach(
function ([index, feature]) { function ([index, feature]) {
feature.value.forEach(function (element, indexIns) { feature.value.forEach(function (element, indexIns) {
if (element.valueIns > 0) { if (element.valueIns > 0) {
links.push({"source": index, "target": (index*feature.value.length+feature.value.length+indexIns)-lengthFeatureAddRem, "value": Math.abs(element.valueIns) * 30, "lin_color": "#33a02c"}) links.push({"source": index, "target": (index*feature.value.length+pushEachFinal.length+indexIns), "value": Math.abs(element.valueIns) * 30, "lin_color": "#33a02c"})
} else { }
links.push({"source": index, "target": (index*feature.value.length+feature.value.length+indexIns)-lengthFeatureAddRem, "value": Math.abs(element.valueIns) * 30, "lin_color": "#e31a1c"}) else {
links.push({"source": index, "target": (index*feature.value.length+pushEachFinal.length+indexIns), "value": Math.abs(element.valueIns) * 30, "lin_color": "#e31a1c"})
} }
}) })
}) })
@ -624,7 +624,6 @@ export default {
EventBus.$emit('UpdateIDs', IDsGather) EventBus.$emit('UpdateIDs', IDsGather)
EventBus.$emit('CompareThree', IDsGather) EventBus.$emit('CompareThree', IDsGather)
} else { } else {
} }
} }
} else { } else {
@ -637,7 +636,7 @@ export default {
} }
EventBus.$emit('UpdateIDs', IDsGather) EventBus.$emit('UpdateIDs', IDsGather)
if (selectionCounter == 1) { if (selectionCounter == 1) {
EventBus.$emit('Default') EventBus.$emit('storeGeneration')
} else if (selectionCounter == 2) { } else if (selectionCounter == 2) {
EventBus.$emit('UpdateIDs', IDsGather) EventBus.$emit('UpdateIDs', IDsGather)
EventBus.$emit('CompareTwo', IDsGather) EventBus.$emit('CompareTwo', IDsGather)

@ -87,7 +87,6 @@ export default {
} else { } else {
var Features = this.generKey var Features = this.generKey
} }
console.log(Features)
let arr = Object.values(featureUni.Score); let arr = Object.values(featureUni.Score);
let minUni = Math.min(...arr); let minUni = Math.min(...arr);
let maxUni = Math.max(...arr); let maxUni = Math.max(...arr);
@ -249,9 +248,10 @@ export default {
return d.count > 1 ? d.join("/") : d; return d.count > 1 ? d.join("/") : d;
}) })
.style('font-weight', function(d) { .style('font-weight', function(d) {
if (d[0] == "# Action #" || d[0] == "Average") { // console.log(d)
return "bold" // if (d[0] === "# Action #" || d[0] === "Average") {
} // return "bold"
// }
}) })
.attr("x", 0) .attr("x", 0)
.attr("y", function(d, i) { .attr("y", function(d, i) {
@ -293,9 +293,9 @@ export default {
}) })
.style("text-anchor", "left") .style("text-anchor", "left")
.style('font-weight',function(d,i){ .style('font-weight',function(d,i){
/*if (d[0] === "Average") { if (d[0] === "# Action #" || d[0] === "Average") {
return "bold" return "bold"
}*/ }
}) })
.attr("transform", function(d, i) { .attr("transform", function(d, i) {
return "translate(" + cellSize / 2 + ", -3) rotate(-90) rotate(45, 0, " + (i * cellSize) + ")"; return "translate(" + cellSize / 2 + ", -3) rotate(-90) rotate(45, 0, " + (i * cellSize) + ")";
@ -311,9 +311,10 @@ export default {
d3.select('#colLabel_' + i).classed("hover", false); d3.select('#colLabel_' + i).classed("hover", false);
}) })
.on("click", function(d, i) { .on("click", function(d, i) {
console.log(d)
colSortOrder = !colSortOrder; colSortOrder = !colSortOrder;
sortByValues("c", i, colSortOrder); sortByValues("c", i, colSortOrder);
d3.select("#order").property("selectedIndex", 0); d3.select("#order").property("selectedIndex", 3);
}); });
var row = svg.selectAll(".row") var row = svg.selectAll(".row")
@ -401,7 +402,7 @@ export default {
} else { } else {
if (d == -4) { if (d == -4) {
const index = featuresGen.indexOf(k); const index = featuresGen.indexOf(k);
console.log(index)
if (index > -1) { if (index > -1) {
featuresGen.splice(index, 1); featuresGen.splice(index, 1);
} }
@ -535,6 +536,7 @@ export default {
}); });
//================================================== //==================================================
d3.select('#colLabel_3').dispatch('click');
}, },
changeOrder(newOrder, heatmapId) { changeOrder(newOrder, heatmapId) {
var svg = d3.select(heatmapId); var svg = d3.select(heatmapId);

@ -459,7 +459,6 @@ export default Vue.extend({
.then(response => { .then(response => {
console.log('Server successfully send the importances!') console.log('Server successfully send the importances!')
this.Importance = response.data.Importance this.Importance = response.data.Importance
console.log(this.Importance)
this.featureNames = [] this.featureNames = []
EventBus.$emit('Generation', this.featureNames) EventBus.$emit('Generation', this.featureNames)
EventBus.$emit('HeatmapCall', this.Importance) EventBus.$emit('HeatmapCall', this.Importance)
@ -549,7 +548,7 @@ export default Vue.extend({
axios.post(path, postData, axiosConfig) axios.post(path, postData, axiosConfig)
.then(response => { .then(response => {
console.log('Store newly generated features!') console.log('Store newly generated features!')
EventBus.$emit('updateFeatureImp') this.threshold()
EventBus.$emit('Default') EventBus.$emit('Default')
}) })
.catch(error => { .catch(error => {

@ -62,7 +62,7 @@ export default {
var data = [] var data = []
var features = this.featuresReceived[33] var features = this.featuresReceived[33]
var labelsX = ['Add', 'Remove', 'Transform', 'Generate'] var labelsX = ['Include', 'Exclude', 'Transform', 'Generate']
for (let i=0; i< features.length; i++) { for (let i=0; i< features.length; i++) {
data.push({ data.push({
label: features[i], label: features[i],

@ -475,7 +475,6 @@ def executeModel(exeCall, flagEx):
XDataTemp = XDataGen[columnsKeepNew] XDataTemp = XDataGen[columnsKeepNew]
XData[columnsKeepNew] = XDataTemp.values XData[columnsKeepNew] = XDataTemp.values
print(XDataStored)
print(XData) print(XData)
featureImportanceData = estimatorFeatureSelection(XData, estimator) featureImportanceData = estimatorFeatureSelection(XData, estimator)
estimator.fit(XData, yData) estimator.fit(XData, yData)
@ -646,7 +645,6 @@ def Transformation(quadrant1, quadrant2, quadrant3, quadrant4, quadrant5):
illusion = locals()[quadrantVariable] illusion = locals()[quadrantVariable]
d["DataRows{0}".format(number)] = XDataNumericCopy.iloc[illusion, :] d["DataRows{0}".format(number)] = XDataNumericCopy.iloc[illusion, :]
dicTransf["roundLog10"] = NewComputationTransf(d['DataRows1'], d['DataRows2'], d['DataRows3'], d['DataRows4'], d['DataRows5'], quadrant1, quadrant2, quadrant3, quadrant4, quadrant5, i, count) dicTransf["roundLog10"] = NewComputationTransf(d['DataRows1'], d['DataRows2'], d['DataRows3'], d['DataRows4'], d['DataRows5'], quadrant1, quadrant2, quadrant3, quadrant4, quadrant5, i, count)
packCorrTransformed.append(dicTransf) packCorrTransformed.append(dicTransf)
return 'Everything Okay' return 'Everything Okay'

Loading…
Cancel
Save