In CvBoost, delegated update_weights's implementation to a helper method.

This allows subclasses of CvBoost to override initial weights that
update_weights uses without duplicating its entire implementation.
This commit is contained in:
Roman Donchenko
2013-04-11 13:43:51 +04:00
parent 62b593ca8b
commit 4143071e22
2 changed files with 10 additions and 3 deletions

View File

@@ -1253,6 +1253,8 @@ public:
protected:
void update_weights_impl( CvBoostTree* tree, double initial_weights[2] );
virtual bool set_params( const CvBoostParams& params );
virtual void update_weights( CvBoostTree* tree );
virtual void trim_weights();