mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
continuing to debug boost and fix MSVC compile errors
This commit is contained in:
parent
98a1181240
commit
24b01a8e4f
@ -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) *
|
||||
|
@ -280,7 +280,6 @@ public:
|
||||
if( calcOOBError && oobError < eps )
|
||||
break;
|
||||
}
|
||||
printf("done!\n");
|
||||
|
||||
if( rparams.calcVarImportance )
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user