diff options
Diffstat (limited to 'SD-VBS/benchmarks/svm')
-rw-r--r-- | SD-VBS/benchmarks/svm/src/c/script_svm.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/SD-VBS/benchmarks/svm/src/c/script_svm.c b/SD-VBS/benchmarks/svm/src/c/script_svm.c index 62a264d..f1ce963 100644 --- a/SD-VBS/benchmarks/svm/src/c/script_svm.c +++ b/SD-VBS/benchmarks/svm/src/c/script_svm.c | |||
@@ -70,24 +70,23 @@ int main(int argc, char* argv[]) | |||
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | 72 | ||
73 | printf("trn file 1: "); | 73 | // trn file 1 |
74 | scanf("%s", im1); | 74 | scanf("%s", im1); |
75 | trn1 = readFile(im1); | 75 | trn1 = readFile(im1); |
76 | 76 | ||
77 | printf("trn file 2: "); | 77 | // trn file 2 |
78 | scanf("%s", im1); | 78 | scanf("%s", im1); |
79 | trn2 = readFile(im1); | 79 | trn2 = readFile(im1); |
80 | 80 | ||
81 | printf("tst file 1: "); | 81 | // tst file 1 |
82 | scanf("%s", im1); | 82 | scanf("%s", im1); |
83 | tst1 = readFile(im1); | 83 | tst1 = readFile(im1); |
84 | 84 | ||
85 | printf("tst file 2: "); | 85 | // tst file 2 |
86 | scanf("%s", im1); | 86 | scanf("%s", im1); |
87 | tst2 = readFile(im1); | 87 | tst2 = readFile(im1); |
88 | 88 | ||
89 | printf("start.\n"); | 89 | for_each_job { |
90 | for_each_job{ | ||
91 | alpha = getAlphaFromTrainSet(N, trn1, trn2, iter); | 90 | alpha = getAlphaFromTrainSet(N, trn1, trn2, iter); |
92 | a_result = alpha->a_result; | 91 | a_result = alpha->a_result; |
93 | b_result = alpha->b_result; | 92 | b_result = alpha->b_result; |
@@ -135,8 +134,8 @@ int main(int argc, char* argv[]) | |||
135 | asubsref(result,n) = maxs; | 134 | asubsref(result,n) = maxs; |
136 | } | 135 | } |
137 | } | 136 | } |
138 | printf("end..\n"); | 137 | |
139 | #ifdef CHECK | 138 | #ifdef CHECK |
140 | /** Self checking - use expected.txt from data directory **/ | 139 | /** Self checking - use expected.txt from data directory **/ |
141 | { | 140 | { |
142 | int ret=0; | 141 | int ret=0; |