Changeset 337 for trunk/test/svm_test.cc
- Timestamp:
- Jun 3, 2005, 4:17:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/svm_test.cc
r329 r337 4 4 #include <c++_tools/gslapi/vector.h> 5 5 #include <c++_tools/svm/SVM.h> 6 #include <c++_tools/svm/Kernel.h> 6 7 #include <c++_tools/svm/Kernel_SEV.h> 7 8 #include <c++_tools/svm/Kernel_MEV.h> … … 96 97 } 97 98 } 98 if (slack > 1e-7){ 99 double slack_bound=2e-7; 100 if (slack > slack_bound){ 99 101 if (print){ 100 102 std::cerr << "Slack too large. Is the bias correct?\n"; 101 103 std::cerr << "slack: " << slack << std::endl; 104 std::cerr << "expected less than " << slack_bound << std::endl; 102 105 } 103 106 ok = false; 104 107 } 105 108 106 109 delete kf; 110 delete kf2; 111 107 112 if(ok) 108 113 return 0;
Note: See TracChangeset
for help on using the changeset viewer.