parent cf4093e3f7
commit 6a56a44eaa
  1. BIN
      __pycache__/run.cpython-38.pyc
  2. 13
      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 MIRemainingLoc = []
var pushEachFinal = []
this.dataFSTrans.forEach(function(element, index) {
var round = element.round
round = JSON.parse(round[loop-1])
@ -369,15 +370,14 @@ export default {
)
})
var lengthFeatureAddRem = this.featureAddRemCount.length
Object.entries(pushEachFinal).forEach(
function ([index, feature]) {
feature.value.forEach(function (element, indexIns) {
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"})
} else {
links.push({"source": index, "target": (index*feature.value.length+feature.value.length+indexIns)-lengthFeatureAddRem, "value": Math.abs(element.valueIns) * 30, "lin_color": "#e31a1c"})
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+pushEachFinal.length+indexIns), "value": Math.abs(element.valueIns) * 30, "lin_color": "#e31a1c"})
}
})
})
@ -624,7 +624,6 @@ export default {
EventBus.$emit('UpdateIDs', IDsGather)
EventBus.$emit('CompareThree', IDsGather)
} else {
}
}
} else {
@ -637,7 +636,7 @@ export default {
}
EventBus.$emit('UpdateIDs', IDsGather)
if (selectionCounter == 1) {
EventBus.$emit('Default')
EventBus.$emit('storeGeneration')
} else if (selectionCounter == 2) {
EventBus.$emit('UpdateIDs', IDsGather)
EventBus.$emit('CompareTwo', IDsGather)

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

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

@ -62,7 +62,7 @@ export default {
var data = []
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++) {
data.push({
label: features[i],

@ -475,7 +475,6 @@ def executeModel(exeCall, flagEx):
XDataTemp = XDataGen[columnsKeepNew]
XData[columnsKeepNew] = XDataTemp.values
print(XDataStored)
print(XData)
featureImportanceData = estimatorFeatureSelection(XData, estimator)
estimator.fit(XData, yData)
@ -646,7 +645,6 @@ def Transformation(quadrant1, quadrant2, quadrant3, quadrant4, quadrant5):
illusion = locals()[quadrantVariable]
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)
packCorrTransformed.append(dicTransf)
return 'Everything Okay'

Loading…
Cancel
Save