Angelos Chatzimparmpas 4 years ago
parent 010eb410a9
commit bc95256023
  1. BIN
      __pycache__/run.cpython-38.pyc
  2. 15
      frontend/src/components/History.vue
  3. 55
      frontend/src/components/PerformanceMetrics.vue
  4. 4
      insertMongo.py

Binary file not shown.

@ -601,7 +601,7 @@ export default {
}
function linkmouseover(d){
d3.select(this)
.attr("stroke-opacity",.8);
.attr("stroke-width",2);
}
function linkmouseout(d){
d3.select(this)
@ -1083,7 +1083,7 @@ export default {
}
function linkmouseover(d){
d3.select(this)
.attr("stroke-opacity",.8);
.attr("stroke-width",2);
}
function linkmouseout(d){
d3.select(this)
@ -1324,7 +1324,7 @@ export default {
}
function linkmouseover(d){
d3.select(this)
.attr("stroke-opacity",.8);
.attr("stroke-width",2);
}
function linkmouseout(d){
d3.select(this)
@ -1405,13 +1405,12 @@ export default {
}
.link:hover {
stroke-opacity: .8;
fill: none;
stroke-width: 1px;
stroke-dasharray: 2,2;
stroke-linejoin: round;
}
#clicked {
stroke-opacity: .8;
}
.axis path,
.axis line {
fill: none;

@ -5,8 +5,24 @@
<table class="table table-borderless table-sm">
<tbody>
<tr>
<th scope="col" colspan="2">Balanced data set</th>
<th scope="col" colspan="2">Imbalanced data set</th>
<th scope="col" colspan="1">Balanced data set</th>
<td>
<b-form-checkbox
id="checkedboxBalanced"
v-model="checkedBalanced"
@change="clickBalan()"
>
</b-form-checkbox>
</td>
<th scope="col" colspan="1">Imbalanced data set</th>
<td>
<b-form-checkbox
id="checkedboxUnbalanced"
v-model="checkedUnbalanced"
@change="clickUnbalan()"
>
</b-form-checkbox>
</td>
</tr>
<tr>
<td>(M1) Accuracy:</td>
@ -110,13 +126,46 @@
checkedRA: false,
checkedLog: false,
checkedMCC: false,
checkedBalanced: true,
checkedUnbalanced: false,
factorsLocal: [1,1,1,1,0,0,0,0]
}
},
methods: {
clickBalan () {
this.checkedUnbalanced = !this.checkedUnbalanced
this.checkedBalanced = !this.checkedBalanced
this.checkedAcc = !this.checkedAcc
this.checkedPrec = !this.checkedPrec
this.checkedF1 = !this.checkedF1
this.checkedGM = !this.checkedGM
this.checkedRA = !this.checkedRA
this.checkedMCC = !this.checkedMCC
this.checkedLog = !this.checkedLog
this.checkedRec = !this.checkedRec
this.factorsLocal = [1,1,1,1,0,0,0,0]
EventBus.$emit('factorsChanged', this.factorsLocal)
},
clickUnbalan () {
this.checkedUnbalanced = !this.checkedUnbalanced
this.checkedBalanced = !this.checkedBalanced
this.checkedAcc = !this.checkedAcc
this.checkedPrec = !this.checkedPrec
this.checkedF1 = !this.checkedF1
this.checkedGM = !this.checkedGM
this.checkedRA = !this.checkedRA
this.checkedMCC = !this.checkedMCC
this.checkedLog = !this.checkedLog
this.checkedRec = !this.checkedRec
this.factorsLocal = [0,0,0,0,1,1,1,1]
EventBus.$emit('factorsChanged', this.factorsLocal)
},
clickAcc () {
this.checkedAcc = !this.checkedAcc
console.log(this.checkedAcc)
this.factorsRegisterChange(0,this.checkedAcc)
},
clickPrec () {

@ -10,7 +10,7 @@ def import_content(filepath):
mng_client = pymongo.MongoClient('localhost', 27017)
mng_db = mng_client['mydb']
#collection_name = 'StanceCTest'
collection_name = 'IrisC'
collection_name = 'HeartC'
db_cm = mng_db[collection_name]
cdir = os.path.dirname(__file__)
file_res = os.path.join(cdir, filepath)
@ -21,5 +21,5 @@ def import_content(filepath):
db_cm.insert(data_json)
if __name__ == "__main__":
filepath = '/Users/anchaa/Documents/Research/HyperSearVis_code/dist/datasets/iris.csv'
filepath = '/Users/anchaa/Documents/Research/HyperSearVis_code/extra_data_sets/heart.csv'
import_content(filepath)
Loading…
Cancel
Save