summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Cheusov <vle@gmx.net>2017-02-16 13:46:25 +0300
committerAleksey Cheusov <vle@gmx.net>2017-02-16 13:46:25 +0300
commitb9c8f56f6d25e5bab27c51a609554f105c17355b (patch)
treead917b656e3cc7ecbd5d994d76f12aa3592a50f2
parent497e73aeba5ba7828f40d310e86d12c6f333d4c3 (diff)
Fix unit tests
-rw-r--r--tests/test_heri-eval.sh12
-rw-r--r--tests/test_heri-stat.sh10
2 files changed, 11 insertions, 11 deletions
diff --git a/tests/test_heri-eval.sh b/tests/test_heri-eval.sh
index b1397bf..d1a1df1 100644
--- a/tests/test_heri-eval.sh
+++ b/tests/test_heri-eval.sh
@@ -292,9 +292,9 @@ env SVM_TRAIN_CMD=test_train SVM_PREDICT_CMD=test_predict \
cmp 'heri-eval #10.1 -- options' \
'Total statistics
Class 0 P, R, F1: 0.5797 40/69 , 1 40/40 , 0.7339
- Class 1 P, R, F1: 1 0/0 , 0 0/29 , 0
+ Class 1 P, R, F1: 0 0/0 , 0 0/29 , 0
Accuracy : 0.5797 40/69
- Macro average P, R, F1: 0.7899 , 0.5 , 0.367
+ Macro average P, R, F1: 0.2899 , 0.5 , 0.367
'
@@ -302,10 +302,10 @@ env SVM_TRAIN_CMD=test_train SVM_PREDICT_CMD=test_predict \
heri-eval -Mt -n2 matrix.libsvm -- -1 2>&1 |
cmp 'heri-eval #10.2 -- options' \
'Total statistics
- Class 0 P, R, F1: 1 0/0 , 0 0/40 , 0
+ Class 0 P, R, F1: 0 0/0 , 0 0/40 , 0
Class 1 P, R, F1: 0.4203 29/69 , 1 29/29 , 0.5918
Accuracy : 0.4203 29/69
- Macro average P, R, F1: 0.7101 , 0.5 , 0.2959
+ Macro average P, R, F1: 0.2101 , 0.5 , 0.2959
'
@@ -313,9 +313,9 @@ env SVM_TRAIN_CMD=test_train SVM_PREDICT_CMD=test_predict \
heri-eval -Mt -s '-r' -S117 -n2 matrix.libsvm -- -1 2>&1 |
cmp 'heri-eval #10.3 -- options' \
'Total statistics
- Class 0 P, R, F1: 1 0/0 , 0 0/40 , 0
+ Class 0 P, R, F1: 0 0/0 , 0 0/40 , 0
Class 1 P, R, F1: 0.4203 29/69 , 1 29/29 , 0.5918
Accuracy : 0.4203 29/69
- Macro average P, R, F1: 0.7101 , 0.5 , 0.2959
+ Macro average P, R, F1: 0.2101 , 0.5 , 0.2959
'
diff --git a/tests/test_heri-stat.sh b/tests/test_heri-stat.sh
index 78f3c6c..d32b438 100644
--- a/tests/test_heri-stat.sh
+++ b/tests/test_heri-stat.sh
@@ -122,10 +122,10 @@ Macro average f1 0.NNNN
heri-stat golden3.txt result3.txt 2>&1 |
remove_fractions |
cmp 'heri-stat #8 all equal' \
-'Class A P, R, F1: 1 0/0 , 0 0/6 , 0
+'Class A P, R, F1: 0 0/0 , 0 0/6 , 0
Class B P, R, F1: 0 0/6 , 0 0/0 , 0
Accuracy : 0 0/6
-Macro average P, R, F1: 0.NNNN , 0 , 0
+Macro average P, R, F1: 0 , 0 , 0
'
heri-stat golden3.txt /dev/null 2>&1 |
@@ -201,10 +201,10 @@ Macro average P, R, F1: 1 , 0.75 , 0.8439
heri-stat -t 0.93 golden5.txt result5_prob.txt 2>&1 |
cmp 'heri-stat #13.5 -t 0.93' \
-'Class A P, R, F1: 1 0/0 , 0 0/2 , 0
-Class B P, R, F1: 1 0/0 , 0 0/3 , 0
+'Class A P, R, F1: 0 0/0 , 0 0/2 , 0
+Class B P, R, F1: 0 0/0 , 0 0/3 , 0
Class C P, R, F1: 1 3/3 , 0.75 3/4 , 0.8571
Class E P, R, F1: 1 3/3 , 0.5 3/6 , 0.6667
Micro average P, R, F1: 1 6/6 , 0.4 6/15 , 0.5714
-Macro average P, R, F1: 1 , 0.3125 , 0.381
+Macro average P, R, F1: 0.5 , 0.3125 , 0.381
'