Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::LogSumVariable Class Reference

#include <LogSumVariable.h>

Inheritance diagram for PLearn::LogSumVariable:

Inheritance graph
[legend]
Collaboration diagram for PLearn::LogSumVariable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LogSumVariable (Variable *input)
 LogSumVariable *.

 PLEARN_DECLARE_OBJECT (LogSumVariable)
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 makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
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


Protected Types

typedef UnaryVariable inherited

Protected Member Functions

 LogSumVariable ()
 Default constructor for persistence.


Protected Attributes

Vec input_softmax

Member Typedef Documentation

typedef UnaryVariable PLearn::LogSumVariable::inherited [protected]
 

Reimplemented from PLearn::UnaryVariable.

Definition at line 55 of file LogSumVariable.h.


Constructor & Destructor Documentation

PLearn::LogSumVariable::LogSumVariable  )  [inline, protected]
 

Default constructor for persistence.

Definition at line 57 of file LogSumVariable.h.

PLearn::LogSumVariable::LogSumVariable Variable input  ) 
 

LogSumVariable *.

Definition at line 55 of file LogSumVariable.cc.


Member Function Documentation

void PLearn::LogSumVariable::bprop  )  [virtual]
 

Implements PLearn::Variable.

Definition at line 84 of file LogSumVariable.cc.

References input_softmax, PLearn::multiplyAcc(), and PLearn::softmax().

void PLearn::LogSumVariable::fprop  )  [virtual]
 

compute output given input

Implements PLearn::Variable.

Definition at line 78 of file LogSumVariable.cc.

References PLearn::logadd().

void PLearn::LogSumVariable::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Reimplemented from PLearn::UnaryVariable.

Definition at line 71 of file LogSumVariable.cc.

References PLearn::deepCopyField(), and input_softmax.

PLearn::LogSumVariable::PLEARN_DECLARE_OBJECT LogSumVariable   ) 
 

void PLearn::LogSumVariable::recomputeSize int l,
int w
const [virtual]
 

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 61 of file LogSumVariable.cc.

void PLearn::LogSumVariable::symbolicBprop  )  [virtual]
 

compute a piece of new Var graph that represents the symbolic derivative of this Var

Reimplemented from PLearn::Variable.

Definition at line 91 of file LogSumVariable.cc.

References PLearn::softmax().


Member Data Documentation

Vec PLearn::LogSumVariable::input_softmax [protected]
 

Definition at line 60 of file LogSumVariable.h.

Referenced by bprop(), and makeDeepCopyFromShallowCopy().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:25:06 2004 for PLearn by doxygen 1.3.7