Commit 78ccde56 authored by Maria Dimashova's avatar Maria Dimashova

limited rng seed choice by 5 values in dtree, boost, rtrees, ertrees tests; hope…

limited rng seed choice by 5 values in dtree, boost, rtrees, ertrees tests; hope this make them more stable.
parent 56745b54
......@@ -100,12 +100,17 @@ int CV_AMLTest::validate_test_results( int testCaseIdx )
resultNode["mean"] >> mean;
resultNode["sigma"] >> sigma;
float curErr = get_error( testCaseIdx, CV_TEST_ERROR );
if ( abs( curErr - mean) > 6*sigma )
const int coeff = 3;
ts->printf( CvTS::LOG, "Test case = %d; test error = %f; mean error = %f (diff=%f), %d*sigma = %f",
testCaseIdx, curErr, mean, abs( curErr - mean), coeff, coeff*sigma );
if ( abs( curErr - mean) > coeff*sigma )
{
ts->printf( CvTS::LOG, "in test case %d test error is out of range:\n"
"abs(%f/*curEr*/ - %f/*mean*/ > %f/*6*sigma*/", testCaseIdx, curErr, mean, 6*sigma );
ts->printf( CvTS::LOG, "abs(%f - %f) > %f - OUT OF RANGE!\n", curErr, mean, coeff*sigma, coeff );
return CvTS::FAIL_BAD_ACCURACY;
}
else
ts->printf( CvTS::LOG, ".\n" );
}
else
{
......
......@@ -45,10 +45,10 @@ CvTS test_system("ml");
const char* blacklist[] =
{
"adtree", //ticket 662
/*"adtree", //ticket 662
"artrees", //ticket 460
"aboost", //ticket 474
"aertrees",
"aertrees",*/ //ticket 505
0
};
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment