|
PLearn 0.1
|
This simply returns -output[0] (target should usually have a length of 0) This is used for density estimators whose use(x) method typically computes log(p(x)) More...
#include <NegOutputCostFunction.h>


Public Member Functions | |
| NegOutputCostFunction () | |
| virtual string | classname () const |
| virtual OptionList & | getOptionList () const |
| virtual OptionMap & | getOptionMap () const |
| virtual RemoteMethodMap & | getRemoteMethodMap () const |
| virtual NegOutputCostFunction * | deepCopy (CopiesMap &copies) const |
| virtual real | evaluate (const Vec &output, const Vec &target) const |
| ** Subclasses must override this method ** | |
Static Public Member Functions | |
| static string | _classname_ () |
| static OptionList & | _getOptionList_ () |
| static RemoteMethodMap & | _getRemoteMethodMap_ () |
| static Object * | _new_instance_for_typemap_ () |
| static bool | _isa_ (const Object *o) |
| static void | _static_initialize_ () |
| static const PPath & | declaringFile () |
Static Public Attributes | |
| static StaticInitializer | _static_initializer_ |
Private Types | |
| typedef Kernel | inherited |
This simply returns -output[0] (target should usually have a length of 0) This is used for density estimators whose use(x) method typically computes log(p(x))
Definition at line 55 of file NegOutputCostFunction.h.
typedef Kernel PLearn::NegOutputCostFunction::inherited [private] |
Reimplemented from PLearn::Kernel.
Definition at line 57 of file NegOutputCostFunction.h.
| PLearn::NegOutputCostFunction::NegOutputCostFunction | ( | ) | [inline] |
Definition at line 60 of file NegOutputCostFunction.h.
{}
| string PLearn::NegOutputCostFunction::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file NegOutputCostFunction.cc.
| OptionList & PLearn::NegOutputCostFunction::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file NegOutputCostFunction.cc.
| RemoteMethodMap & PLearn::NegOutputCostFunction::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file NegOutputCostFunction.cc.
Reimplemented from PLearn::Kernel.
Definition at line 52 of file NegOutputCostFunction.cc.
| Object * PLearn::NegOutputCostFunction::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 52 of file NegOutputCostFunction.cc.
| StaticInitializer NegOutputCostFunction::_static_initializer_ & PLearn::NegOutputCostFunction::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file NegOutputCostFunction.cc.
| string PLearn::NegOutputCostFunction::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 52 of file NegOutputCostFunction.cc.
| static const PPath& PLearn::NegOutputCostFunction::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Kernel.
Definition at line 62 of file NegOutputCostFunction.h.
{ return new NegOutputCostFunction(); }
| NegOutputCostFunction * PLearn::NegOutputCostFunction::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file NegOutputCostFunction.cc.
** Subclasses must override this method **
returns K(x1,x2)
Implements PLearn::Kernel.
Definition at line 54 of file NegOutputCostFunction.cc.
{ return -output[0]; }
| OptionList & PLearn::NegOutputCostFunction::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 52 of file NegOutputCostFunction.cc.
| OptionMap & PLearn::NegOutputCostFunction::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 52 of file NegOutputCostFunction.cc.
| RemoteMethodMap & PLearn::NegOutputCostFunction::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 52 of file NegOutputCostFunction.cc.
Reimplemented from PLearn::Kernel.
Definition at line 62 of file NegOutputCostFunction.h.
1.7.4