#include <mgnboost.h>
Inheritance diagram for MgnCost:


Public Member Functions | |
| MgnCost (const cost::Cost &c=cost::_cost) | |
| virtual REAL | cost (const REAL &F, const REAL &y) const |
| virtual REAL | deriv1 (const REAL &F, const REAL &y) const |
Public Attributes | |
| const cost::Cost & | orig_cost |
| REAL | lambda |
current minimal margin | |
| REAL | wsum |
| current sum of weak learner weights | |
This class is a proxy to any other ``base'' cost functor. The minimal margin
is subtracted from the margin of each examples, and then the base cost functor is called.
Definition at line 21 of file mgnboost.h.
|
|
Definition at line 26 of file mgnboost.h. |
|
||||||||||||
|
Reimplemented from AdaCost< REAL >. Definition at line 28 of file mgnboost.h. References AdaCost::cost(), MgnCost::lambda, MgnCost::orig_cost, and MgnCost::wsum. |
|
||||||||||||
|
Reimplemented from AdaCost< REAL >. Definition at line 31 of file mgnboost.h. References AdaCost::deriv1(), MgnCost::lambda, MgnCost::orig_cost, and MgnCost::wsum. |
|
|
current minimal margin
Definition at line 23 of file mgnboost.h. Referenced by MgnCost::cost(), and MgnCost::deriv1(). |
|
|
Definition at line 22 of file mgnboost.h. Referenced by MgnCost::cost(), and MgnCost::deriv1(). |
|
|
current sum of weak learner weights
Definition at line 24 of file mgnboost.h. Referenced by MgnCost::cost(), and MgnCost::deriv1(). |
1.4.6