diff options
| author | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 02:12:49 -0400 |
|---|---|---|
| committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 02:12:49 -0400 |
| commit | e23e931be4776b89149fdb2596f47096e6cdb78c (patch) | |
| tree | faf3963cc501f103cd2554553ec74ce21157b42e /SD-VBS/benchmarks/svm/src | |
| parent | e2d933df44b7b387b41c8c7805393ad3857c4448 (diff) | |
| parent | e0217a963c6c0e0667d41d075038685956bcfacf (diff) | |
Merge branch 'sd-vbs' of ssh://rtsrv.cs.unc.edu/public/mc2-scripts-and-benchmarks into sd-vbs
Diffstat (limited to 'SD-VBS/benchmarks/svm/src')
| -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; |
