MgnCost Struct Reference

Cost proxy used in MgnBoost. More...

#include <mgnboost.h>

Inheritance diagram for MgnCost:

Inheritance graph
[legend]
Collaboration diagram for MgnCost:

Collaboration graph
[legend]
List of all members.

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::Costorig_cost
REAL lambda
 current minimal margin $\lambda$
REAL wsum
 current sum of weak learner weights

Detailed Description

Cost proxy used in MgnBoost.

This class is a proxy to any other ``base'' cost functor. The minimal margin $\lambda$ is subtracted from the margin of each examples, and then the base cost functor is called.

Definition at line 21 of file mgnboost.h.


Constructor & Destructor Documentation

MgnCost const cost::Cost c = cost::_cost  )  [inline]
 

Definition at line 26 of file mgnboost.h.


Member Function Documentation

virtual REAL cost const REAL F,
const REAL y
const [inline, virtual]
 

Definition at line 28 of file mgnboost.h.

References AdaCost::cost(), MgnCost::lambda, MgnCost::orig_cost, and MgnCost::wsum.

virtual REAL deriv1 const REAL F,
const REAL y
const [inline, virtual]
 

Definition at line 31 of file mgnboost.h.

References AdaCost::deriv1(), MgnCost::lambda, MgnCost::orig_cost, and MgnCost::wsum.


Member Data Documentation

REAL lambda
 

current minimal margin $\lambda$

Definition at line 23 of file mgnboost.h.

Referenced by MgnCost::cost(), and MgnCost::deriv1().

const cost::Cost& orig_cost
 

Definition at line 22 of file mgnboost.h.

Referenced by MgnCost::cost(), and MgnCost::deriv1().

REAL wsum
 

current sum of weak learner weights

Definition at line 24 of file mgnboost.h.

Referenced by MgnCost::cost(), and MgnCost::deriv1().


The documentation for this struct was generated from the following file:
Generated on Wed Nov 8 08:17:01 2006 for LEMGA by  doxygen 1.4.6