From 7e417d9697ae443d828cc773ef94842d2c778dba Mon Sep 17 00:00:00 2001 From: Angelos Chatzimparmpas Date: Wed, 6 Jan 2021 22:34:53 +0100 Subject: [PATCH] new --- __pycache__/run.cpython-38.pyc | Bin 29739 -> 29872 bytes frontend/src/components/Heatmap.vue | 3 ++- frontend/src/components/Main.vue | 7 +++++++ run.py | 6 ++++-- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/__pycache__/run.cpython-38.pyc b/__pycache__/run.cpython-38.pyc index 2d975798387b78b40dbc8f57f1e647c53f416b1d..d770e6c3fc7c7e6c40be58e51ebb77f3414703b5 100644 GIT binary patch delta 6331 zcma)A3v`sl75?YnM;@CjA@78|%zN`9gb)PNK%Rm`UI`@pK*P`ef5MvGe>b!LDxsT3 zd5Faav|~Y`o+hQD(Q|yIE!ui4o=QFKv85jCIX%BxOIsgQTU)DEsny;)f3kTHgzU+; zckaD&=g!QXJ9qZccgYhMh;vhXe5?R}2P!`4S@!Ca&Y##arTE5>zROQNdt}|?*Ic4u zhen@Alh_|^nM4}@%yz$MZ-h>?k=+-4J82%zjj0zGcMtTP^U}S^Kls~>QJ~8;aUJAwnLXSx7w+K!ZPG8N4O559^q>U z4G1d`R+GUk!BN8y8v7S2oJk$eq9dN zLl_ecv8vi2{^=dqtMgZpJeHGKnz9xFC5Nb1J9b?APoD(iTt$X-_*-O0`;rju@VF)^F;v-G4@=8Ex| zG_n39H`zOWF6mDqS;d}6Evvlpgm>@>gF}1r*#~J^F|u!`A~$r>o3MY)mHW$+{plK< zRXZ+SZe;1G51F&pIl$gXtB19N0j^?4Zs!ABrSd^j8GIwDLM5QaEL4Lp!{SkP8y2_UYsL(>$Rj1d9?a+*#!hrU!U2S-0Zkp?je$EsD-d@0 z7Kas+YveQbdbHAS&@Z@Q<{gpH=3uL8~FzI?`Ihc7Oova@|y_5 z2)6=A$&HlCe8}mY_MkkBa2oBrc67lBvYpjr?VXP~r%3C0k$0KJ}fp+`{sZ2-yU^DC;?u$!4_`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8nm#Q7bbYXGuN ztrpcgnpeppv=79$0Vm6!nG?F(3WuyYj^+yXtE zldQOv#QL)qYxHGhagcgAmFuIK+U+Tm>gEq3vz+fp#O&hVAm~>XHuo!W`m1U_#^M2` zkA{nz9m`-8b;Y#Wsq-+9zOK=1i=u6$C7t+|t!H|Y|%dXp{g?rBPs zHBS2Qp!lGtWF~4-z)LR|vAs?SdlH1vGQN@x+HN%#vwgv+(HZLE+pvU(+HF(5v(YE^ zW} { console.log(error) @@ -620,6 +626,7 @@ export default Vue.extend({ .then(response => { console.log('Features transformation active!') this.threshold() + this.transformNodesFlag = true }) .catch(error => { console.log(error) diff --git a/run.py b/run.py index 13bc32c..3f76ae7 100644 --- a/run.py +++ b/run.py @@ -476,7 +476,6 @@ def executeModel(exeCall, flagEx, nodeTransfName): else: XData = XDataStored.copy() columnsNewGen = keepOriginalFeatures.columns.values.tolist() - # Bayesian Optimization for 150 iterations if (keyFirstTime): create_global_function() @@ -504,6 +503,10 @@ def executeModel(exeCall, flagEx, nodeTransfName): elif (flagEx == 4): splittedCol = nodeTransfName.split('_') XData.rename(columns={ XData.columns[exeCall[0]]: nodeTransfName }, inplace = True) + currentColumn = columnsNewGen[exeCall[0]] + subString = currentColumn[currentColumn.find("(")+1:currentColumn.find(")")] + replacement = currentColumn.replace(subString, nodeTransfName) + columnsNewGen[exeCall[0]] = replacement if (len(splittedCol) == 1): XData[nodeTransfName] = XDataStoredOriginal[nodeTransfName] else: @@ -1216,7 +1219,6 @@ def Seperation(): global packCorr packCorr = [] - packCorr.append(json.dumps(columnsNewGen)) packCorr.append(json.dumps(target_names)) packCorr.append(json.dumps(probabilityPredictions))