#include <SoftSlopeIntegralVariable.h>
Inheritance diagram for PLearn::SoftSlopeIntegralVariable:
Public Member Functions | |
SoftSlopeIntegralVariable () | |
Default constructor for persistence. | |
SoftSlopeIntegralVariable (Variable *smoothness, Variable *left, Variable *right, real a_=0, real b_=1, bool tabulated=true) | |
PLEARN_DECLARE_OBJECT (SoftSlopeIntegralVariable) | |
virtual void | recomputeSize (int &l, int &w) const |
Recomputes the length l and width w that this variable should have, according to its parent variables. | |
virtual void | fprop () |
compute output given input | |
virtual void | bprop () |
virtual void | symbolicBprop () |
compute a piece of new Var graph that represents the symbolic derivative of this Var | |
Static Public 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) | |
Public Attributes | |
real | a |
real | b |
bool | tabulated |
Private Types | |
typedef NaryVariable | inherited |
|
Reimplemented from PLearn::NaryVariable. Definition at line 57 of file SoftSlopeIntegralVariable.h. Referenced by SoftSlopeIntegralVariable(). |
|
Default constructor for persistence.
Definition at line 66 of file SoftSlopeIntegralVariable.h. |
|
Definition at line 57 of file SoftSlopeIntegralVariable.cc. References inherited, PLearn::left(), and PLearn::right(). |
|
Implements PLearn::Variable. Definition at line 121 of file SoftSlopeIntegralVariable.cc. References a, b, PLearn::left(), PLearn::VarArray::nelems(), PLearn::Variable::nelems(), PLearn::right(), PLearn::softplus(), tabulated, and PLearn::tabulated_softplus(). |
|
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::NaryVariable. Definition at line 65 of file SoftSlopeIntegralVariable.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
compute output given input
Implements PLearn::Variable. Definition at line 94 of file SoftSlopeIntegralVariable.cc. References a, b, PLearn::left(), PLearn::VarArray::nelems(), PLearn::Variable::nelems(), PLearn::right(), PLearn::soft_slope_integral(), tabulated, and PLearn::tabulated_soft_slope_integral(). |
|
|
|
Recomputes the length l and width w that this variable should have, according to its parent variables. This is used for ex. by sizeprop() The default version stupidly returns the current dimensions, so make sure to overload it in subclasses if this is not appropriate. Reimplemented from PLearn::Variable. Definition at line 73 of file SoftSlopeIntegralVariable.cc. References PLERROR, and PLearn::TVec< Var >::size(). |
|
compute a piece of new Var graph that represents the symbolic derivative of this Var
Reimplemented from PLearn::Variable. Definition at line 175 of file SoftSlopeIntegralVariable.cc. References PLERROR. |
|
Definition at line 61 of file SoftSlopeIntegralVariable.h. |
|
Definition at line 61 of file SoftSlopeIntegralVariable.h. |
|
Definition at line 62 of file SoftSlopeIntegralVariable.h. |