#include <SquaredErrorCostFunction.h>
Inheritance diagram for PLearn::SquaredErrorCostFunction:
Public Member Functions | |
SquaredErrorCostFunction (int the_targetindex=-1) | |
SquaredErrorCostFunction (real hot_value, real cold_value) | |
Constructor for classification (target is interpreted as onehot). | |
PLEARN_DECLARE_OBJECT (SquaredErrorCostFunction) | |
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) | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
recognized option is "targetindex" | |
Protected Attributes | |
int | targetindex |
index in target vector of the target value to use to compute the squared error (if -1, sum all the squared errors) | |
bool | classification |
real | hotvalue |
real | coldvalue |
Private Types | |
typedef Kernel | inherited |
Definition at line 55 of file SquaredErrorCostFunction.h.
|
Reimplemented from PLearn::Kernel. Definition at line 57 of file SquaredErrorCostFunction.h. |
|
Definition at line 67 of file SquaredErrorCostFunction.h. References classification, coldvalue, hotvalue, and targetindex. |
|
Constructor for classification (target is interpreted as onehot).
Definition at line 71 of file SquaredErrorCostFunction.h. References classification, coldvalue, hotvalue, and targetindex. |
|
recognized option is "targetindex"
Reimplemented from PLearn::Kernel. Definition at line 83 of file SquaredErrorCostFunction.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
returns K(x1,x2)
Implements PLearn::Kernel. Definition at line 52 of file SquaredErrorCostFunction.cc. References classification, coldvalue, PLearn::TVec< T >::data(), hotvalue, PLearn::TVec< T >::length(), PLERROR, PLearn::square(), targetindex, and PLearn::Vec. |
|
returns a bit more informative string about object (default returns classname())
Reimplemented from PLearn::Object. Definition at line 76 of file SquaredErrorCostFunction.h. |
|
|
|
Definition at line 63 of file SquaredErrorCostFunction.h. Referenced by evaluate(), and SquaredErrorCostFunction(). |
|
Definition at line 64 of file SquaredErrorCostFunction.h. Referenced by evaluate(), and SquaredErrorCostFunction(). |
|
Definition at line 64 of file SquaredErrorCostFunction.h. Referenced by evaluate(), and SquaredErrorCostFunction(). |
|
index in target vector of the target value to use to compute the squared error (if -1, sum all the squared errors)
Definition at line 62 of file SquaredErrorCostFunction.h. Referenced by evaluate(), and SquaredErrorCostFunction(). |