Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::NegLogProbCostFunction Class Reference

#include <NegLogProbCostFunction.h>

Inheritance diagram for PLearn::NegLogProbCostFunction:

Inheritance graph
[legend]
Collaboration diagram for PLearn::NegLogProbCostFunction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NegLogProbCostFunction (bool do_normalize=false, bool do_smooth_map_outputs=false)
 PLEARN_DECLARE_OBJECT (NegLogProbCostFunction)
virtual string info () const
 returns a bit more informative string about object (default returns classname())

virtual real evaluate (const Vec &output, const Vec &target) const
 returns K(x1,x2)


Public Attributes

bool normalize
bool smooth_map_outputs

Static Protected Member Functions

void declareOptions (OptionList &ol)
 recognized options are "normalize" and "smooth_map_outputs"


Private Types

typedef Kernel inherited

Detailed Description

The target is an integer between 0 and n_classes-1 corresponding to a class Y, and the output is a vector of length n_classes of non-negative estimated conditional probabilities P(Y=i|X) for class i (i=0 to n_classes-1), or if n_classes=2, the output could be a vector of length 1 containing P(Y=1|X). The cost is

Definition at line 62 of file NegLogProbCostFunction.h.


Member Typedef Documentation

typedef Kernel PLearn::NegLogProbCostFunction::inherited [private]
 

Reimplemented from PLearn::Kernel.

Definition at line 64 of file NegLogProbCostFunction.h.


Constructor & Destructor Documentation

PLearn::NegLogProbCostFunction::NegLogProbCostFunction bool  do_normalize = false,
bool  do_smooth_map_outputs = false
[inline]
 

Definition at line 80 of file NegLogProbCostFunction.h.

References normalize, and smooth_map_outputs.


Member Function Documentation

void PLearn::NegLogProbCostFunction::declareOptions OptionList ol  )  [static, protected]
 

recognized options are "normalize" and "smooth_map_outputs"

Reimplemented from PLearn::Kernel.

Definition at line 129 of file NegLogProbCostFunction.cc.

References PLearn::declareOption(), and PLearn::OptionList.

real PLearn::NegLogProbCostFunction::evaluate const Vec output,
const Vec target
const [virtual]
 

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 55 of file NegLogProbCostFunction.cc.

References PLearn::TVec< T >::length(), normalize, PLERROR, PLearn::safeflog(), smooth_map_outputs, smoothmap, PLearn::sum(), and PLearn::Vec.

virtual string PLearn::NegLogProbCostFunction::info  )  const [inline, virtual]
 

returns a bit more informative string about object (default returns classname())

Reimplemented from PLearn::Object.

Definition at line 85 of file NegLogProbCostFunction.h.

PLearn::NegLogProbCostFunction::PLEARN_DECLARE_OBJECT NegLogProbCostFunction   ) 
 


Member Data Documentation

bool PLearn::NegLogProbCostFunction::normalize
 

Definition at line 67 of file NegLogProbCostFunction.h.

Referenced by evaluate(), and NegLogProbCostFunction().

bool PLearn::NegLogProbCostFunction::smooth_map_outputs
 

Definition at line 68 of file NegLogProbCostFunction.h.

Referenced by evaluate(), and NegLogProbCostFunction().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:35 2004 for PLearn by doxygen 1.3.7