fixed compile warnings from MSVC; fixed warnings in Python bindings; added some debugging code

This commit is contained in:
Vadim Pisarevsky
2014-08-03 12:46:28 +04:00
parent 9cb79b9abb
commit eeb786fcfd
10 changed files with 30 additions and 30 deletions

View File

@@ -108,7 +108,7 @@ float StatModel::calcError( const Ptr<TrainData>& data, bool testerr, OutputArra
if( _resp.needed() )
resp.copyTo(_resp);
return err / n * (isclassifier ? 100 : 1);
return (float)(err / n * (isclassifier ? 100 : 1));
}
void StatModel::save(const String& filename) const