#include <SourceVariable.h>
Inheritance diagram for PLearn::SourceVariable:
Public Member Functions | |
SourceVariable () | |
Default constructor for persistence. | |
SourceVariable (int thelength, int thewidth) | |
SourceVariable (const Vec &v, bool vertical=true) | |
SourceVariable (const Mat &m) | |
virtual void | setParents (const VarArray &parents) |
set this Variable's parents. To use with default constructor. | |
virtual bool | markPath () |
virtual void | buildPath (VarArray &proppath) |
Finally buildPath is to be called from the output Variable of interest (this will build the proppath at the same time as erasing the marks). | |
virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
PLEARN_DECLARE_OBJECT (SourceVariable) | |
virtual void | fprop () |
compute output given input | |
virtual void | bprop () |
virtual void | bbprop () |
compute an approximation to diag(d^2/dinput^2) given diag(d^2/doutput^2), with diag(d^2/dinput^2) ~=~ (doutput/dinput)' diag(d^2/doutput^2) (doutput/dinput) In particular: if 'C' depends on 'y' and 'y' depends on x ... | |
virtual void | symbolicBprop () |
compute a piece of new Var graph that represents the symbolic derivative of this Var | |
virtual void | rfprop () |
virtual VarArray | sources () |
if not marked, find all constant sources that influence this Variable. | |
virtual VarArray | random_sources () |
return ancestors which compute a non-deterministic function of their parents | |
virtual VarArray | ancestors () |
if not marked, find all Variables that influence this Variable. | |
virtual void | unmarkAncestors () |
undo any marking done by a call to sources() or ancestors() | |
virtual VarArray | parents () |
returns all the direct parents of this Var that are not marked (the call doesn't change any mark) | |
bool | isConstant () |
void | printInfo (bool print_gradient) |
Private Types | |
typedef Variable | inherited |
|
Reimplemented from PLearn::Variable. Definition at line 53 of file SourceVariable.h. Referenced by SourceVariable(). |
|
Default constructor for persistence.
Definition at line 57 of file SourceVariable.h. |
|
Definition at line 54 of file SourceVariable.cc. References inherited. |
|
Definition at line 58 of file SourceVariable.cc. References PLearn::Vec. |
|
Definition at line 62 of file SourceVariable.cc. References PLearn::Mat. |
|
if not marked, find all Variables that influence this Variable.
Implements PLearn::Variable. Definition at line 95 of file SourceVariable.cc. References PLearn::Variable::setMark(). |
|
compute an approximation to diag(d^2/dinput^2) given diag(d^2/doutput^2), with diag(d^2/dinput^2) ~=~ (doutput/dinput)' diag(d^2/doutput^2) (doutput/dinput) In particular: if 'C' depends on 'y' and 'y' depends on x ... d^2C/dx^2 = d^2C/dy^2 * (dy/dx)^2 + dC/dy * d^2y/dx^2 (diaghessian) (gradient) Reimplemented from PLearn::Variable. Definition at line 74 of file SourceVariable.cc. |
|
Implements PLearn::Variable. Reimplemented in PLearn::SourceSampleVariable. Definition at line 73 of file SourceVariable.cc. |
|
Finally buildPath is to be called from the output Variable of interest (this will build the proppath at the same time as erasing the marks).
Implements PLearn::Variable. Definition at line 115 of file SourceVariable.cc. References PLearn::TVec< Var >::append(), and PLearn::Variable::clearMark(). |
|
compute output given input
Implements PLearn::Variable. Reimplemented in PLearn::UniformSampleVariable. Definition at line 72 of file SourceVariable.cc. |
|
Reimplemented from PLearn::Variable. Definition at line 83 of file SourceVariable.h. |
|
Reimplemented from PLearn::Variable. Definition at line 66 of file SourceVariable.cc. References PLearn::deepCopyField(). Referenced by PLearn::UniformSampleVariable::deepCopy(). |
|
sets the marked flag of all the sVariable that are to be in the fprop path. The input sVariable that are of interest are to be marked first. Then markPath is to be called from the output Variable of interest Implements PLearn::Variable. Definition at line 112 of file SourceVariable.cc. |
|
returns all the direct parents of this Var that are not marked (the call doesn't change any mark)
Implements PLearn::Variable. Definition at line 109 of file SourceVariable.cc. |
|
|
|
Implements PLearn::Variable. Definition at line 85 of file SourceVariable.h. References PLearn::endl(), and PLearn::Variable::getName(). |
|
return ancestors which compute a non-deterministic function of their parents
Implements PLearn::Variable. Reimplemented in PLearn::SourceSampleVariable. Definition at line 88 of file SourceVariable.cc. References PLearn::Variable::setMark(). |
|
Reimplemented from PLearn::Variable. Definition at line 75 of file SourceVariable.cc. |
|
set this Variable's parents. To use with default constructor.
Reimplemented from PLearn::Variable. Definition at line 63 of file SourceVariable.h. References PLERROR, and setParents(). Referenced by setParents(). |
|
if not marked, find all constant sources that influence this Variable. A constant source is normally a SourceVariable. Implements PLearn::Variable. Definition at line 78 of file SourceVariable.cc. References PLearn::Variable::setMark(). |
|
compute a piece of new Var graph that represents the symbolic derivative of this Var
Reimplemented from PLearn::Variable. Definition at line 76 of file SourceVariable.cc. |
|
undo any marking done by a call to sources() or ancestors()
Implements PLearn::Variable. Definition at line 103 of file SourceVariable.cc. References PLearn::Variable::clearMark(). |