continuing to debug boost and fix MSVC compile errors

This commit is contained in:
Vadim Pisarevsky 2014-08-03 21:21:11 +04:00
parent 98a1181240
commit 24b01a8e4f
3 changed files with 4 additions and 4 deletions

View File

@ -496,7 +496,7 @@ public:
* Gradient Boosted Trees *
\****************************************************************************************/
class CV_EXPORTS_W GBTrees : public DTrees
/*class CV_EXPORTS_W GBTrees : public DTrees
{
public:
struct CV_EXPORTS_W_MAP Params : public DTrees::Params
@ -516,10 +516,10 @@ public:
virtual void setK(int k) = 0;
virtual float predictSerial( InputArray samples,
OutputArray weakResponses, int flags) const;
OutputArray weakResponses, int flags) const = 0;
static Ptr<GBTrees> create(const Params& p);
};
};*/
/****************************************************************************************\
* Artificial Neural Networks (ANN) *

View File

@ -280,7 +280,6 @@ public:
if( calcOOBError && oobError < eps )
break;
}
printf("done!\n");
if( rparams.calcVarImportance )
{

View File

@ -452,6 +452,7 @@ int DTreesImpl::addNodeAndTrySplit( int parent, const vector<int>& sidx )
w->wnodes[nidx].left = addNodeAndTrySplit( nidx, sleft );
w->wnodes[nidx].right = addNodeAndTrySplit( nidx, sright );
CV_Assert( w->wnodes[nidx].left > 0 && w->wnodes[nidx].right > 0 );
}
return nidx;