瀏覽代碼

DTBOblique: small change to debug output

Sven Sickert 10 年之前
父節點
當前提交
82b3595451
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      classifier/fpclassifier/randomforest/DTBOblique.cpp

+ 2 - 1
classifier/fpclassifier/randomforest/DTBOblique.cpp

@@ -215,7 +215,8 @@ void DTBOblique::findBestSplitThreshold (
     double maxValue = (max_element ( values.begin(), values.end() ))->first;
     double maxValue = (max_element ( values.begin(), values.end() ))->first;
 
 
     if ( maxValue - minValue < 1e-7 )
     if ( maxValue - minValue < 1e-7 )
-        std::cerr << "DTBOblique: Difference between min and max of features values to small!" << std::endl;
+        std::cerr << "DTBOblique: Difference between min and max of features values to small!"
+                  << " [" << minValue << "," << maxValue << "]" << std::endl;
 
 
     // get best thresholds using complete search
     // get best thresholds using complete search
     for ( int i = 0; i < splitSteps; i++ )
     for ( int i = 0; i < splitSteps; i++ )