Skip to content

Commit

Permalink
added disjunction
Browse files Browse the repository at this point in the history
  • Loading branch information
PradeepPatil101 committed Apr 18, 2023
1 parent 6e76f3b commit 8dd4dc2
Showing 1 changed file with 9 additions and 59 deletions.
68 changes: 9 additions & 59 deletions src/Project2/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,106 +635,56 @@ def runStats(dataAll,dataSway,dataXpln,dataTop,bestdataSway,bestdataXpln, dataEv
print(f"sway2 with {bestSwayEvals} evals", strings.o(query.stats(bestdataSway)), strings.o(query.stats(bestdataSway, query.div)))
print(f"xpln2 on {bestXplnEvals} evals", strings.o(query.stats(bestdataXpln)), strings.o(query.stats(bestdataXpln, query.div)))
print("------------------")
print("Using Cliffs Delta")
print("Equals")
print("------------------")
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataAll.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataAll.rows.items()]
ret[i.txt] = numerics.cliffsDelta(list1,list2)
ret[i.txt] = " = " if numerics.cliffsDelta(list1,list2) or numerics.bootstrap(list1,list2) else " ! "
print("All to All ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataAll.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataSway.rows.items()]
ret[i.txt] = numerics.cliffsDelta(list1,list2)
ret[i.txt] = " = " if numerics.cliffsDelta(list1,list2) or numerics.bootstrap(list1,list2) else " ! "
print("All to Sway1 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataAll.rows.items()]
list2 = [r.cells[i.at] for n2,r in bestdataSway.rows.items()]
ret[i.txt] = numerics.cliffsDelta(list1,list2)
ret[i.txt] = " = " if numerics.cliffsDelta(list1,list2) or numerics.bootstrap(list1,list2) else " ! "
print("All to Sway2 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in bestdataSway.rows.items()]
ret[i.txt] = numerics.cliffsDelta(list1,list2)
ret[i.txt] = " = " if numerics.cliffsDelta(list1,list2) or numerics.bootstrap(list1,list2) else " ! "
print("Sway1 to Sway2 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataXpln.rows.items()]
ret[i.txt] = numerics.cliffsDelta(list1,list2)
ret[i.txt] = " = " if numerics.cliffsDelta(list1,list2) or numerics.bootstrap(list1,list2) else " ! "
print("Sway1 to Xpln1 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in bestdataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in bestdataXpln.rows.items()]
ret[i.txt] = numerics.cliffsDelta(list1,list2)
ret[i.txt] = " = " if numerics.cliffsDelta(list1,list2) or numerics.bootstrap(list1,list2) else " ! "
print("Sway2 to Xpln2 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataTop.rows.items()]
ret[i.txt] = numerics.cliffsDelta(list1,list2)
ret[i.txt] = " = " if numerics.cliffsDelta(list1,list2) or numerics.bootstrap(list1,list2) else " ! "
print("Sway1 to Top ", ret)
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in bestdataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataTop.rows.items()]
ret[i.txt] = numerics.cliffsDelta(list1,list2)
ret[i.txt] = " = " if numerics.cliffsDelta(list1,list2) or numerics.bootstrap(list1,list2) else " ! "
print("Sway2 to Top ", ret)

print("------------------")
print("Using Bootstrap")
print("------------------")
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataAll.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataAll.rows.items()]
ret[i.txt] = numerics.bootstrap(list1,list2)
print("All to All ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataAll.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataSway.rows.items()]
ret[i.txt] = numerics.bootstrap(list1,list2)
print("All to Sway1 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataAll.rows.items()]
list2 = [r.cells[i.at] for n2,r in bestdataSway.rows.items()]
ret[i.txt] = numerics.bootstrap(list1,list2)
print("All to Sway2 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in bestdataSway.rows.items()]
ret[i.txt] = numerics.bootstrap(list1,list2)
print("Sway1 to Sway2 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataXpln.rows.items()]
ret[i.txt] = numerics.bootstrap(list1,list2)
print("Sway1 to Xpln1 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in bestdataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in bestdataXpln.rows.items()]
ret[i.txt] = numerics.bootstrap(list1,list2)
print("Sway2 to Xpln2 ", ret)
ret = {}
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in dataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataTop.rows.items()]
ret[i.txt] = numerics.bootstrap(list1,list2)
print("Sway1 to Top ", ret)
for n,i in dataAll.cols.y.items():
list1 = [r.cells[i.at] for n2,r in bestdataSway.rows.items()]
list2 = [r.cells[i.at] for n2,r in dataTop.rows.items()]
ret[i.txt] = numerics.bootstrap(list1,list2)
print("Sway2 to Top ", ret)



Expand Down

0 comments on commit 8dd4dc2

Please sign in to comment.