#include <WeightedCostFunction.h>
Inheritance diagram for PLearn::WeightedCostFunction:
Public Member Functions | |
WeightedCostFunction () | |
WeightedCostFunction (Ker the_costfunc) | |
PLEARN_DECLARE_OBJECT (WeightedCostFunction) | |
virtual string | info () const |
returns a bit more informative string about object (default returns classname()) | |
virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
virtual real | evaluate (const Vec &output, const Vec &target) const |
returns K(x1,x2) | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) | |
Protected Attributes | |
Ker | costfunc |
Private Types | |
typedef Kernel | inherited |
Definition at line 55 of file WeightedCostFunction.h.
|
Reimplemented from PLearn::Kernel. Definition at line 57 of file WeightedCostFunction.h. |
|
Definition at line 63 of file WeightedCostFunction.h. References costfunc. |
|
Definition at line 64 of file WeightedCostFunction.h. References costfunc. |
|
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); } Reimplemented from PLearn::Kernel. Definition at line 61 of file WeightedCostFunction.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
returns K(x1,x2)
Implements PLearn::Kernel. Definition at line 57 of file WeightedCostFunction.cc. References costfunc, PLearn::TVec< T >::length(), PLearn::TVec< T >::subVec(), and PLearn::Vec. |
|
returns a bit more informative string about object (default returns classname())
Reimplemented from PLearn::Object. Definition at line 69 of file WeightedCostFunction.h. References costfunc. |
|
Definition at line 51 of file WeightedCostFunction.cc. References costfunc, and PLearn::deepCopyField(). |
|
|
|
Definition at line 60 of file WeightedCostFunction.h. Referenced by evaluate(), info(), makeDeepCopyFromShallowCopy(), and WeightedCostFunction(). |