Changeset 2031


Ignore:
Timestamp:
Aug 19, 2009, 11:24:54 PM (11 years ago)
Author:
Peter
Message:

loosen strictness of some tests in regression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/regression_test.cc

    r1797 r2031  
    262262    suite.err() << "non-weighted s2 = " << r.s2() << std::endl;
    263263  }
    264   if (!suite.equal(r.standard_error2(2000), rw.standard_error2(2000), 10) ){
     264  if (!suite.equal_sqrt(r.standard_error2(2000), rw.standard_error2(2000), 20)){
    265265    suite.add(false);
    266266    suite.err() << "Error: standard_error not equal non-weighted version."
     
    273273    suite.err() << "non-weighted r2 = " << r.r2() << std::endl;
    274274  }
    275   if (!suite.equal(r.prediction_error2(2000), rw.prediction_error2(2000,1),
    276                    100) ){
     275  if (!suite.equal_sqrt(r.prediction_error2(2000), rw.prediction_error2(2000,1),
     276                        100) ){
    277277    suite.add(false);
    278278    suite.err() << "Error: prediction_error2 not equal non-weighted version.\n"
     
    418418  }
    419419
    420   if (!suite.equal(md.standard_error2(z), mdw.standard_error2(z)) ){
     420  if (!suite.equal_sqrt(md.standard_error2(z), mdw.standard_error2(z),20) ){
    421421    suite.add(false);
    422422    suite.err() << "Error: standard_error2 not equal\n"
     
    425425           << std::endl;
    426426  }
    427   if (!suite.equal(md.prediction_error2(z), mdw.prediction_error2(z,1.0)) ){
     427  if (!suite.equal_sqrt(md.prediction_error2(z), mdw.prediction_error2(z,1.0),
     428                        20) ){
    428429    suite.add(false);
    429430    suite.err() << "Error: prediction_error2 not equal\n"
Note: See TracChangeset for help on using the changeset viewer.