mgnboost.cpp

Go to the documentation of this file.
00001 
00005 #include <assert.h>
00006 #include "optimize.h"
00007 #include "mgnboost.h"
00008 
00009 REGISTER_CREATOR(lemga::MgnBoost);
00010 
00011 namespace lemga {
00012 
00013 void MgnBoost::train () {
00014     assert(!convex && grad_desc_view);
00015     Boosting::train();
00016 }
00017 
00018 void MgnBoost::train_gd () {
00019     _mgn_gd mgd(this);
00020     iterative_optimize(_line_search<_mgn_gd,BoostWgt,REAL,REAL>
00021                        (&mgd, convex? 1.0 : 0.5));
00022     update_cost_l(); // optional, just to be consistent with the def.
00023 }
00024 
00025 } // namespace lemga

Generated on Wed Nov 8 08:15:21 2006 for LEMGA by  doxygen 1.4.6