#include <ClassMarginCostFunction.h>
Inheritance diagram for PLearn::ClassMarginCostFunction:
Public Member Functions | |
ClassMarginCostFunction (bool the_binary_target_is_01=false, bool out_is_positive=false) | |
PLEARN_DECLARE_OBJECT (ClassMarginCostFunction) | |
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 | binary_target_is_01 |
bool | output_is_positive |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
recognized option are "binary_target_is_01" and "output_is_positive" | |
Private Types | |
typedef Kernel | inherited |
Definition at line 70 of file ClassMarginCostFunction.h.
|
Reimplemented from PLearn::Kernel. Definition at line 72 of file ClassMarginCostFunction.h. |
|
Definition at line 77 of file ClassMarginCostFunction.h. References binary_target_is_01, and output_is_positive. |
|
recognized option are "binary_target_is_01" and "output_is_positive"
Reimplemented from PLearn::Kernel. Definition at line 82 of file ClassMarginCostFunction.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
returns K(x1,x2)
Implements PLearn::Kernel. Definition at line 51 of file ClassMarginCostFunction.cc. References PLearn::argmax(), binary_target_is_01, PLearn::TVec< T >::length(), PLearn::max(), output_is_positive, and PLearn::Vec. |
|
returns a bit more informative string about object (default returns classname())
Reimplemented from PLearn::Object. Definition at line 84 of file ClassMarginCostFunction.h. |
|
|
|
Definition at line 75 of file ClassMarginCostFunction.h. Referenced by ClassMarginCostFunction(), and evaluate(). |
|
Definition at line 76 of file ClassMarginCostFunction.h. Referenced by ClassMarginCostFunction(), and evaluate(). |