Changeset 337


Ignore:
Timestamp:
Jun 3, 2005, 4:17:17 PM (16 years ago)
Author:
Peter
Message:

changed bound of slack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/svm_test.cc

    r329 r337  
    44#include <c++_tools/gslapi/vector.h>
    55#include <c++_tools/svm/SVM.h>
     6#include <c++_tools/svm/Kernel.h>
    67#include <c++_tools/svm/Kernel_SEV.h>
    78#include <c++_tools/svm/Kernel_MEV.h>
     
    9697    }
    9798  }
    98   if (slack > 1e-7){
     99  double slack_bound=2e-7;
     100  if (slack > slack_bound){
    99101    if (print){
    100102      std::cerr << "Slack too large. Is the bias correct?\n";
    101103      std::cerr << "slack: " << slack << std::endl;
     104      std::cerr << "expected less than " << slack_bound << std::endl;
    102105    }
    103106    ok = false;
    104107  }
    105108 
    106  
     109  delete kf;
     110  delete kf2;
     111
    107112  if(ok)
    108113    return 0;
Note: See TracChangeset for help on using the changeset viewer.