Commit 24b01a8e authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

continuing to debug boost and fix MSVC compile errors

parent 98a11812
...@@ -496,7 +496,7 @@ public: ...@@ -496,7 +496,7 @@ public:
* Gradient Boosted Trees * * Gradient Boosted Trees *
\****************************************************************************************/ \****************************************************************************************/
class CV_EXPORTS_W GBTrees : public DTrees /*class CV_EXPORTS_W GBTrees : public DTrees
{ {
public: public:
struct CV_EXPORTS_W_MAP Params : public DTrees::Params struct CV_EXPORTS_W_MAP Params : public DTrees::Params
...@@ -516,10 +516,10 @@ public: ...@@ -516,10 +516,10 @@ public:
virtual void setK(int k) = 0; virtual void setK(int k) = 0;
virtual float predictSerial( InputArray samples, virtual float predictSerial( InputArray samples,
OutputArray weakResponses, int flags) const; OutputArray weakResponses, int flags) const = 0;
static Ptr<GBTrees> create(const Params& p); static Ptr<GBTrees> create(const Params& p);
}; };*/
/****************************************************************************************\ /****************************************************************************************\
* Artificial Neural Networks (ANN) * * Artificial Neural Networks (ANN) *
......
...@@ -280,7 +280,6 @@ public: ...@@ -280,7 +280,6 @@ public:
if( calcOOBError && oobError < eps ) if( calcOOBError && oobError < eps )
break; break;
} }
printf("done!\n");
if( rparams.calcVarImportance ) if( rparams.calcVarImportance )
{ {
......
...@@ -452,6 +452,7 @@ int DTreesImpl::addNodeAndTrySplit( int parent, const vector<int>& sidx ) ...@@ -452,6 +452,7 @@ int DTreesImpl::addNodeAndTrySplit( int parent, const vector<int>& sidx )
w->wnodes[nidx].left = addNodeAndTrySplit( nidx, sleft ); w->wnodes[nidx].left = addNodeAndTrySplit( nidx, sleft );
w->wnodes[nidx].right = addNodeAndTrySplit( nidx, sright ); w->wnodes[nidx].right = addNodeAndTrySplit( nidx, sright );
CV_Assert( w->wnodes[nidx].left > 0 && w->wnodes[nidx].right > 0 );
} }
return nidx; return nidx;
......
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