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

PLearn::MulticlassErrorCostFunction Class Reference

#include <MulticlassErrorCostFunction.h>

Inheritance diagram for PLearn::MulticlassErrorCostFunction:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MulticlassErrorCostFunction ()
 PLEARN_DECLARE_OBJECT (MulticlassErrorCostFunction)
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)


Private Types

typedef Kernel inherited

Detailed Description

cost = sum_i class_error_i

Definition at line 57 of file MulticlassErrorCostFunction.h.


Member Typedef Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 59 of file MulticlassErrorCostFunction.h.


Constructor & Destructor Documentation

PLearn::MulticlassErrorCostFunction::MulticlassErrorCostFunction  )  [inline]
 

Definition at line 62 of file MulticlassErrorCostFunction.h.


Member Function Documentation

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

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 53 of file MulticlassErrorCostFunction.cc.

References PLearn::TVec< T >::length(), PLERROR, and PLearn::Vec.

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

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

Reimplemented from PLearn::Object.

Definition at line 66 of file MulticlassErrorCostFunction.h.

PLearn::MulticlassErrorCostFunction::PLEARN_DECLARE_OBJECT MulticlassErrorCostFunction   ) 
 


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