Skip to content

Commit

Permalink
TMM version
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlyqing00 committed Sep 4, 2019
1 parent 1b8579a commit 048c0e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 54 deletions.
20 changes: 6 additions & 14 deletions benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
#!/bin/bash

# test_n=3
# nums=(20 30 40 60)
# samples=(150 300 1000 8000)
test_n=3
nums=(20 30 40 60)
samples=(150 300 1000 8000)

test_n=0
nums=(20)
samples=(150)

# method_n=1
# metrics=(0 1)
# comps=(0 0)

method_n=0
metrics=(2)
comps=(2)
method_n=2
metrics=(0 1 2)
comps=(0 0 2)

if [ $# == 0 ]; then
echo "Enter a test case name."
Expand Down
2 changes: 1 addition & 1 deletion calc_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@

for i in range(len(nums)):
for j in range(method_n):
# print('median', i, j, np.median(data[i][order[j]]))
print('median', i, j, label_name[j], np.median(data[i][order[j]]))
print('mean', i, j, label_name[j], np.mean(data[i][j]))

for i in range(test_n):
Expand Down
39 changes: 0 additions & 39 deletions format_scores.py

This file was deleted.

0 comments on commit 048c0e9

Please sign in to comment.