PLearn 0.1
|
#include <BinaryVariable.h>
Inherits PLearn::Variable.
Inherited by PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::BinarySampleVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::LogSoftSoftMaxVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::NLLNeighborhoodWeightsVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SoftSoftMaxVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesColumnVariable, PLearn::TimesConstantScalarVariable2, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, and PLearn::WeightedSumSquareVariable.
Public Member Functions | |
BinaryVariable () | |
BinaryVariable (Variable *v1, Variable *v2, int thelength, int thewidth, bool call_build_=true) | |
virtual BinaryVariable * | deepCopy (CopiesMap &copies) const |
virtual void | setParents (const VarArray &parents) |
set this Variable's parents. To use with default constructor. | |
virtual void | build () |
Post-constructor. | |
virtual void | makeDeepCopyFromShallowCopy (CopiesMap &copies) |
Does the necessary operations to transform a shallow copy (this) into a deep copy by deep-copying all the members that need to be. | |
virtual bool | markPath () |
Sets the marked flag of all the sVariable that are to be in the fprop path. | |
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 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) | |
void | printInfo (bool print_gradient) |
virtual void | resizeRValue () |
Static Public Member Functions | |
static string | _classname_ () |
static OptionList & | _getOptionList_ () |
static RemoteMethodMap & | _getRemoteMethodMap_ () |
static bool | _isa_ (const Object *o) |
static void | _static_initialize_ () |
static const PPath & | declaringFile () |
Static Public Attributes | |
static StaticInitializer | _static_initializer_ |
Static Protected Member Functions | |
static void | declareOptions (OptionList &ol) |
Declare options (data fields) for the class. | |
Protected Attributes | |
Var | input1 |
Var | input2 |
Private Types | |
typedef Variable | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
Definition at line 53 of file BinaryVariable.h.
typedef Variable PLearn::BinaryVariable::inherited [private] |
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 55 of file BinaryVariable.h.
PLearn::BinaryVariable::BinaryVariable | ( | ) | [inline] |
Definition at line 63 of file BinaryVariable.h.
{}
PLearn::BinaryVariable::BinaryVariable | ( | Variable * | v1, |
Variable * | v2, | ||
int | thelength, | ||
int | thewidth, | ||
bool | call_build_ = true |
||
) |
Definition at line 58 of file BinaryVariable.cc.
References build_(), input1, and input2.
: inherited(thelength, thewidth, call_build_), input1(v1), input2(v2) { if (input1) input1->disallowPartialUpdates(); if (input2) input2->disallowPartialUpdates(); if (call_build_) build_(); }
string PLearn::BinaryVariable::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 53 of file BinaryVariable.cc.
OptionList & PLearn::BinaryVariable::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 53 of file BinaryVariable.cc.
RemoteMethodMap & PLearn::BinaryVariable::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 53 of file BinaryVariable.cc.
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 53 of file BinaryVariable.cc.
StaticInitializer BinaryVariable::_static_initializer_ & PLearn::BinaryVariable::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 53 of file BinaryVariable.cc.
VarArray PLearn::BinaryVariable::ancestors | ( | ) | [virtual] |
if not marked, find all Variables that influence this Variable.
Implements PLearn::Variable.
Definition at line 191 of file BinaryVariable.cc.
References input1, input2, PLearn::Variable::marked, and PLearn::Variable::Var.
void PLearn::BinaryVariable::build | ( | ) | [virtual] |
Post-constructor.
The normal implementation should call simply inherited::build(), then this class's build_(). This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 89 of file BinaryVariable.cc.
References PLearn::Variable::build(), and build_().
Referenced by PLearn::WeightedSumSquareVariable::build(), PLearn::VarRowVariable::build(), PLearn::VarRowsVariable::build(), PLearn::VarElementVariable::build(), PLearn::TransposeProductVariable::build(), PLearn::TimesVariable::build(), PLearn::TimesScalarVariable::build(), PLearn::TimesRowVariable::build(), PLearn::TimesConstantScalarVariable2::build(), PLearn::TimesColumnVariable::build(), PLearn::SumVarianceOfLinearTransformedCategoricals::build(), PLearn::SumVarianceOfLinearTransformedBernoullis::build(), PLearn::SparseIncrementalAffineTransformVariable::build(), PLearn::SoftSoftMaxVariable::build(), PLearn::SoftmaxLossVariable::build(), PLearn::RowAtPositionVariable::build(), PLearn::ReIndexedTargetVariable::build(), PLearn::ProjectionErrorVariable::build(), PLearn::ProductVariable::build(), PLearn::ProductTransposeVariable::build(), PLearn::PowVariableVariable::build(), PLearn::PlusVariable::build(), PLearn::PlusScalarVariable::build(), PLearn::PlusRowVariable::build(), PLearn::PlusColumnVariable::build(), PLearn::OneHotSquaredLoss::build(), PLearn::NLLNeighborhoodWeightsVariable::build(), PLearn::NegCrossEntropySigmoidVariable::build(), PLearn::MulticlassLossVariable::build(), PLearn::MinusVariable::build(), PLearn::MinusTransposedColumnVariable::build(), PLearn::MinusScalarVariable::build(), PLearn::MinusRowVariable::build(), PLearn::MinusColumnVariable::build(), PLearn::MiniBatchClassificationLossVariable::build(), PLearn::Min2Variable::build(), PLearn::Max2Variable::build(), PLearn::MatrixSoftmaxLossVariable::build(), PLearn::MatrixOneHotSquaredLoss::build(), PLearn::MarginPerceptronCostVariable::build(), PLearn::LogSoftSoftMaxVariable::build(), PLearn::LogAddVariable::build(), PLearn::LiftOutputVariable::build(), PLearn::IsSmallerVariable::build(), PLearn::IsLargerVariable::build(), PLearn::IndexAtPositionVariable::build(), PLearn::GradientAdaboostCostVariable::build(), PLearn::EqualVariable::build(), PLearn::EqualScalarVariable::build(), PLearn::ElementAtPositionVariable::build(), PLearn::DotProductVariable::build(), PLearn::DivVariable::build(), PLearn::CrossEntropyVariable::build(), PLearn::ColumnIndexVariable::build(), PLearn::ClassificationLossVariable::build(), PLearn::BinaryClassificationLossVariable::build(), PLearn::AffineTransformVariable::build(), and PLearn::LogAddVariable::build_().
{ inherited::build(); build_(); }
void PLearn::BinaryVariable::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 98 of file BinaryVariable.cc.
Referenced by BinaryVariable(), and build().
{}
void PLearn::BinaryVariable::buildPath | ( | VarArray & | proppath | ) | [virtual] |
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 148 of file BinaryVariable.cc.
References PLearn::Variable::clearMark(), input1, input2, PLearn::Variable::marked, and PLearn::Variable::Var.
{ if(marked) { if (input1) input1->buildPath(proppath); if (input2) input2->buildPath(proppath); proppath &= Var(this); //cout<<"proppath="<<this->getName()<<endl; clearMark(); } }
void PLearn::BinaryVariable::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declare options (data fields) for the class.
Redefine this in subclasses: call declareOption
(...) for each option, and then call inherited::declareOptions(options)
. Please call the inherited
method AT THE END to get the options listed in a consistent order (from most recently defined to least recently defined).
static void MyDerivedClass::declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "The size of the input; it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "The learned model weights"); inherited::declareOptions(ol); }
ol | List of options that is progressively being constructed for the current class. |
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ElementAtPositionVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SparseIncrementalAffineTransformVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 75 of file BinaryVariable.cc.
References PLearn::OptionBase::buildoption, PLearn::declareOption(), PLearn::Variable::declareOptions(), input1, and input2.
Referenced by PLearn::SumVarianceOfLinearTransformedCategoricals::declareOptions(), PLearn::SumVarianceOfLinearTransformedBernoullis::declareOptions(), PLearn::SparseIncrementalAffineTransformVariable::declareOptions(), PLearn::SoftSoftMaxVariable::declareOptions(), PLearn::RowAtPositionVariable::declareOptions(), PLearn::ReIndexedTargetVariable::declareOptions(), PLearn::OneHotSquaredLoss::declareOptions(), PLearn::NLLNeighborhoodWeightsVariable::declareOptions(), PLearn::NegCrossEntropySigmoidVariable::declareOptions(), PLearn::MatrixOneHotSquaredLoss::declareOptions(), PLearn::MarginPerceptronCostVariable::declareOptions(), PLearn::LogSoftSoftMaxVariable::declareOptions(), PLearn::LogAddVariable::declareOptions(), PLearn::IndexAtPositionVariable::declareOptions(), PLearn::GradientAdaboostCostVariable::declareOptions(), PLearn::ElementAtPositionVariable::declareOptions(), PLearn::BinaryClassificationLossVariable::declareOptions(), and PLearn::AffineTransformVariable::declareOptions().
{ declareOption(ol, "input1", &BinaryVariable::input1, OptionBase::buildoption, "The first parent variable that this one depends on\n"); declareOption(ol, "input2", &BinaryVariable::input2, OptionBase::buildoption, "The second parent variable that this one depends on\n"); inherited::declareOptions(ol); }
static const PPath& PLearn::BinaryVariable::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 66 of file BinaryVariable.h.
{
BinaryVariable * PLearn::BinaryVariable::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::DiagonalNormalSampleVariable, PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 53 of file BinaryVariable.cc.
void PLearn::BinaryVariable::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Does the necessary operations to transform a shallow copy (this) into a deep copy by deep-copying all the members that need to be.
This needs to be overridden by every class that adds "complex" data members to the class, such as Vec
, Mat
, PP<Something>
, etc. Typical implementation:
void CLASS_OF_THIS::makeDeepCopyFromShallowCopy(CopiesMap& copies) { inherited::makeDeepCopyFromShallowCopy(copies); deepCopyField(complex_data_member1, copies); deepCopyField(complex_data_member2, copies); ... }
copies | A map used by the deep-copy mechanism to keep track of already-copied objects. |
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::LogAddVariable, PLearn::ReIndexedTargetVariable, PLearn::SparseIncrementalAffineTransformVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 127 of file BinaryVariable.cc.
References input1, input2, PLearn::Variable::makeDeepCopyFromShallowCopy(), and PLearn::varDeepCopyField().
Referenced by PLearn::DiagonalNormalSampleVariable::deepCopy(), PLearn::SumVarianceOfLinearTransformedCategoricals::makeDeepCopyFromShallowCopy(), PLearn::SumVarianceOfLinearTransformedBernoullis::makeDeepCopyFromShallowCopy(), PLearn::SparseIncrementalAffineTransformVariable::makeDeepCopyFromShallowCopy(), PLearn::SoftSoftMaxVariable::makeDeepCopyFromShallowCopy(), PLearn::ReIndexedTargetVariable::makeDeepCopyFromShallowCopy(), PLearn::NLLNeighborhoodWeightsVariable::makeDeepCopyFromShallowCopy(), PLearn::LogSoftSoftMaxVariable::makeDeepCopyFromShallowCopy(), and PLearn::LogAddVariable::makeDeepCopyFromShallowCopy().
{ inherited::makeDeepCopyFromShallowCopy(copies); varDeepCopyField(input1, copies); varDeepCopyField(input2, copies); }
bool PLearn::BinaryVariable::markPath | ( | ) | [virtual] |
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 137 of file BinaryVariable.cc.
References input1, input2, and PLearn::Variable::marked.
VarArray PLearn::BinaryVariable::parents | ( | ) | [virtual] |
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 218 of file BinaryVariable.cc.
References PLearn::TVec< T >::append(), input1, and input2.
{ VarArray unmarked_parents; if (input1 && !input1->marked) unmarked_parents.append(input1); if (input2 && !input2->marked) unmarked_parents.append(input2); return unmarked_parents; }
void PLearn::BinaryVariable::printInfo | ( | bool | print_gradient | ) | [inline, virtual] |
Implements PLearn::Variable.
Definition at line 81 of file BinaryVariable.h.
References PLearn::endl(), and PLearn::pout.
{ pout << getName() << "[" << (void*)this << "] " << *this << "(" << (void*)input1 << "," << (void*)input2 << ") = " << value; if (print_gradient) pout << " gradient=" << gradient; pout << endl; }
VarArray PLearn::BinaryVariable::random_sources | ( | ) | [virtual] |
return ancestors which compute a non-deterministic function of their parents
Implements PLearn::Variable.
Reimplemented in PLearn::BinarySampleVariable.
Definition at line 180 of file BinaryVariable.cc.
References input1, input2, and PLearn::Variable::marked.
void PLearn::BinaryVariable::resizeRValue | ( | ) | [virtual] |
Reimplemented from PLearn::Variable.
Definition at line 231 of file BinaryVariable.cc.
References input1, input2, and PLearn::Variable::resizeRValue().
Referenced by PLearn::SoftmaxLossVariable::rfprop(), PLearn::TimesRowVariable::rfprop(), PLearn::PlusScalarVariable::rfprop(), PLearn::ElementAtPositionVariable::rfprop(), PLearn::MinusScalarVariable::rfprop(), PLearn::RowAtPositionVariable::rfprop(), PLearn::VarRowVariable::rfprop(), PLearn::TimesColumnVariable::rfprop(), PLearn::ProductVariable::rfprop(), PLearn::TimesScalarVariable::rfprop(), PLearn::ProductTransposeVariable::rfprop(), PLearn::DivVariable::rfprop(), PLearn::PlusColumnVariable::rfprop(), PLearn::TimesConstantScalarVariable2::rfprop(), PLearn::DotProductVariable::rfprop(), PLearn::TransposeProductVariable::rfprop(), PLearn::VarElementVariable::rfprop(), and PLearn::PlusRowVariable::rfprop().
{ inherited::resizeRValue(); if (input1 && !input1->rvaluedata) input1->resizeRValue(); if (input2 && !input2->rvaluedata) input2->resizeRValue(); }
void PLearn::BinaryVariable::setParents | ( | const VarArray & | parents | ) | [virtual] |
set this Variable's parents. To use with default constructor.
Reimplemented from PLearn::Variable.
Definition at line 103 of file BinaryVariable.cc.
References input1, input2, PLearn::TVec< T >::length(), PLERROR, and PLearn::Variable::sizeprop().
{ if(parents.length() != 2) PLERROR("In BinaryVariable::setParents VarArray length must be 2;" " you are trying to set %d parents for this BinaryVariable...", parents.length()); input1= parents[0]; input2= parents[1]; // int dummy_l, dummy_w; //recomputeSize(dummy_l, dummy_w); sizeprop(); }
VarArray PLearn::BinaryVariable::sources | ( | ) | [virtual] |
if not marked, find all constant sources that influence this Variable.
A constant source is normally a SourceVariable.
Implements PLearn::Variable.
Definition at line 165 of file BinaryVariable.cc.
References input1, input2, and PLearn::Variable::marked.
void PLearn::BinaryVariable::unmarkAncestors | ( | ) | [virtual] |
undo any marking done by a call to sources() or ancestors()
Implements PLearn::Variable.
Definition at line 203 of file BinaryVariable.cc.
References input1, input2, and PLearn::Variable::marked.
Reimplemented from PLearn::Variable.
Reimplemented in PLearn::AffineTransformVariable, PLearn::BinaryClassificationLossVariable, PLearn::ClassificationLossVariable, PLearn::ColumnIndexVariable, PLearn::ConvolveVariable, PLearn::CrossEntropyVariable, PLearn::DivVariable, PLearn::DotProductVariable, PLearn::ElementAtPositionVariable, PLearn::EqualScalarVariable, PLearn::EqualVariable, PLearn::LogSoftSoftMaxVariable, PLearn::SoftSoftMaxVariable, PLearn::SumVarianceOfLinearTransformedBernoullis, PLearn::SumVarianceOfLinearTransformedCategoricals, PLearn::TimesConstantScalarVariable2, PLearn::GradientAdaboostCostVariable, PLearn::IndexAtPositionVariable, PLearn::IsLargerVariable, PLearn::IsSmallerVariable, PLearn::LiftOutputVariable, PLearn::LogAddVariable, PLearn::MarginPerceptronCostVariable, PLearn::MatrixAffineTransformFeedbackVariable, PLearn::MatrixAffineTransformVariable, PLearn::MatrixOneHotSquaredLoss, PLearn::MatrixSoftmaxLossVariable, PLearn::Max2Variable, PLearn::Min2Variable, PLearn::MiniBatchClassificationLossVariable, PLearn::MinusColumnVariable, PLearn::MinusRowVariable, PLearn::MinusScalarVariable, PLearn::MinusTransposedColumnVariable, PLearn::MinusVariable, PLearn::MulticlassLossVariable, PLearn::NegCrossEntropySigmoidVariable, PLearn::OneHotSquaredLoss, PLearn::PlusColumnVariable, PLearn::PlusRowVariable, PLearn::PlusScalarVariable, PLearn::PlusVariable, PLearn::PowVariableVariable, PLearn::ProductTransposeVariable, PLearn::ProductVariable, PLearn::ProjectionErrorVariable, PLearn::ReIndexedTargetVariable, PLearn::RowAtPositionVariable, PLearn::SoftmaxLossVariable, PLearn::SparseIncrementalAffineTransformVariable, PLearn::TimesColumnVariable, PLearn::TimesRowVariable, PLearn::TimesScalarVariable, PLearn::TimesVariable, PLearn::TransposeProductVariable, PLearn::VarColumnsVariable, PLearn::VarElementVariable, PLearn::VarRowsVariable, PLearn::VarRowVariable, PLearn::WeightedSumSquareVariable, and PLearn::NLLNeighborhoodWeightsVariable.
Definition at line 66 of file BinaryVariable.h.
Var PLearn::BinaryVariable::input1 [protected] |
Definition at line 59 of file BinaryVariable.h.
Referenced by ancestors(), PLearn::TransposeProductVariable::bbprop(), PLearn::ProductVariable::bbprop(), PLearn::ProductTransposeVariable::bbprop(), PLearn::PlusVariable::bbprop(), PLearn::PlusScalarVariable::bbprop(), PLearn::PlusRowVariable::bbprop(), PLearn::PlusColumnVariable::bbprop(), PLearn::MinusVariable::bbprop(), PLearn::MinusScalarVariable::bbprop(), PLearn::MinusRowVariable::bbprop(), PLearn::MinusColumnVariable::bbprop(), PLearn::DotProductVariable::bbprop(), BinaryVariable(), PLearn::WeightedSumSquareVariable::bprop(), PLearn::VarRowVariable::bprop(), PLearn::VarRowsVariable::bprop(), PLearn::VarElementVariable::bprop(), PLearn::VarColumnsVariable::bprop(), PLearn::TransposeProductVariable::bprop(), PLearn::TimesVariable::bprop(), PLearn::TimesScalarVariable::bprop(), PLearn::TimesRowVariable::bprop(), PLearn::TimesConstantScalarVariable2::bprop(), PLearn::TimesColumnVariable::bprop(), PLearn::SumVarianceOfLinearTransformedCategoricals::bprop(), PLearn::SumVarianceOfLinearTransformedBernoullis::bprop(), PLearn::SparseIncrementalAffineTransformVariable::bprop(), PLearn::SoftSoftMaxVariable::bprop(), PLearn::SoftmaxLossVariable::bprop(), PLearn::RowAtPositionVariable::bprop(), PLearn::ProductVariable::bprop(), PLearn::ProductTransposeVariable::bprop(), PLearn::PowVariableVariable::bprop(), PLearn::PlusVariable::bprop(), PLearn::PlusScalarVariable::bprop(), PLearn::PlusRowVariable::bprop(), PLearn::PlusColumnVariable::bprop(), PLearn::OneHotSquaredLoss::bprop(), PLearn::NegCrossEntropySigmoidVariable::bprop(), PLearn::MinusVariable::bprop(), PLearn::MinusTransposedColumnVariable::bprop(), PLearn::MinusScalarVariable::bprop(), PLearn::MinusRowVariable::bprop(), PLearn::MinusColumnVariable::bprop(), PLearn::Min2Variable::bprop(), PLearn::Max2Variable::bprop(), PLearn::MatrixSoftmaxLossVariable::bprop(), PLearn::MatrixOneHotSquaredLoss::bprop(), PLearn::MarginPerceptronCostVariable::bprop(), PLearn::LogSoftSoftMaxVariable::bprop(), PLearn::LogAddVariable::bprop(), PLearn::LiftOutputVariable::bprop(), PLearn::IndexAtPositionVariable::bprop(), PLearn::GradientAdaboostCostVariable::bprop(), PLearn::ElementAtPositionVariable::bprop(), PLearn::DotProductVariable::bprop(), PLearn::DivVariable::bprop(), PLearn::CrossEntropyVariable::bprop(), PLearn::ConvolveVariable::bprop(), PLearn::ColumnIndexVariable::bprop(), PLearn::AffineTransformVariable::bprop(), PLearn::WeightedSumSquareVariable::build_(), PLearn::VarRowVariable::build_(), PLearn::VarRowsVariable::build_(), PLearn::TransposeProductVariable::build_(), PLearn::TimesVariable::build_(), PLearn::TimesRowVariable::build_(), PLearn::TimesColumnVariable::build_(), PLearn::SparseIncrementalAffineTransformVariable::build_(), PLearn::RowAtPositionVariable::build_(), PLearn::ReIndexedTargetVariable::build_(), PLearn::ProjectionErrorVariable::build_(), PLearn::ProductVariable::build_(), PLearn::ProductTransposeVariable::build_(), PLearn::PowVariableVariable::build_(), PLearn::PlusVariable::build_(), PLearn::PlusRowVariable::build_(), PLearn::PlusColumnVariable::build_(), PLearn::NLLNeighborhoodWeightsVariable::build_(), PLearn::NegCrossEntropySigmoidVariable::build_(), PLearn::MulticlassLossVariable::build_(), PLearn::MinusVariable::build_(), PLearn::MinusTransposedColumnVariable::build_(), PLearn::MinusRowVariable::build_(), PLearn::MinusColumnVariable::build_(), PLearn::Min2Variable::build_(), PLearn::Max2Variable::build_(), PLearn::LogSoftSoftMaxVariable::build_(), PLearn::LogAddVariable::build_(), PLearn::LiftOutputVariable::build_(), PLearn::IsSmallerVariable::build_(), PLearn::IsLargerVariable::build_(), PLearn::IndexAtPositionVariable::build_(), PLearn::GradientAdaboostCostVariable::build_(), PLearn::EqualVariable::build_(), PLearn::ElementAtPositionVariable::build_(), PLearn::DotProductVariable::build_(), PLearn::DivVariable::build_(), PLearn::CrossEntropyVariable::build_(), PLearn::ColumnIndexVariable::build_(), PLearn::AffineTransformVariable::build_(), buildPath(), declareOptions(), PLearn::WeightedSumSquareVariable::fprop(), PLearn::VarRowVariable::fprop(), PLearn::VarRowsVariable::fprop(), PLearn::VarElementVariable::fprop(), PLearn::VarColumnsVariable::fprop(), PLearn::TransposeProductVariable::fprop(), PLearn::TimesVariable::fprop(), PLearn::TimesScalarVariable::fprop(), PLearn::TimesRowVariable::fprop(), PLearn::TimesConstantScalarVariable2::fprop(), PLearn::TimesColumnVariable::fprop(), PLearn::SumVarianceOfLinearTransformedCategoricals::fprop(), PLearn::SumVarianceOfLinearTransformedBernoullis::fprop(), PLearn::SparseIncrementalAffineTransformVariable::fprop(), PLearn::SoftSoftMaxVariable::fprop(), PLearn::SoftmaxLossVariable::fprop(), PLearn::DiagonalNormalSampleVariable::fprop(), PLearn::RowAtPositionVariable::fprop(), PLearn::ReIndexedTargetVariable::fprop(), PLearn::ProductVariable::fprop(), PLearn::ProductTransposeVariable::fprop(), PLearn::PowVariableVariable::fprop(), PLearn::PlusVariable::fprop(), PLearn::PlusScalarVariable::fprop(), PLearn::PlusRowVariable::fprop(), PLearn::PlusColumnVariable::fprop(), PLearn::OneHotSquaredLoss::fprop(), PLearn::NLLNeighborhoodWeightsVariable::fprop(), PLearn::NegCrossEntropySigmoidVariable::fprop(), PLearn::MulticlassLossVariable::fprop(), PLearn::MinusVariable::fprop(), PLearn::MinusTransposedColumnVariable::fprop(), PLearn::MinusScalarVariable::fprop(), PLearn::MinusRowVariable::fprop(), PLearn::MinusColumnVariable::fprop(), PLearn::MiniBatchClassificationLossVariable::fprop(), PLearn::Min2Variable::fprop(), PLearn::Max2Variable::fprop(), PLearn::MatrixSoftmaxLossVariable::fprop(), PLearn::MatrixOneHotSquaredLoss::fprop(), PLearn::MarginPerceptronCostVariable::fprop(), PLearn::LogSoftSoftMaxVariable::fprop(), PLearn::LogAddVariable::fprop(), PLearn::LiftOutputVariable::fprop(), PLearn::IsSmallerVariable::fprop(), PLearn::IsLargerVariable::fprop(), PLearn::IndexAtPositionVariable::fprop(), PLearn::GradientAdaboostCostVariable::fprop(), PLearn::EqualVariable::fprop(), PLearn::EqualScalarVariable::fprop(), PLearn::ElementAtPositionVariable::fprop(), PLearn::DotProductVariable::fprop(), PLearn::DivVariable::fprop(), PLearn::CrossEntropyVariable::fprop(), PLearn::ConvolveVariable::fprop(), PLearn::ColumnIndexVariable::fprop(), PLearn::ClassificationLossVariable::fprop(), PLearn::BinaryClassificationLossVariable::fprop(), PLearn::AffineTransformVariable::fprop(), makeDeepCopyFromShallowCopy(), markPath(), parents(), random_sources(), PLearn::VarRowVariable::recomputeSize(), PLearn::VarRowsVariable::recomputeSize(), PLearn::VarColumnsVariable::recomputeSize(), PLearn::TransposeProductVariable::recomputeSize(), PLearn::TimesVariable::recomputeSize(), PLearn::TimesScalarVariable::recomputeSize(), PLearn::TimesRowVariable::recomputeSize(), PLearn::TimesConstantScalarVariable2::recomputeSize(), PLearn::TimesColumnVariable::recomputeSize(), PLearn::SparseIncrementalAffineTransformVariable::recomputeSize(), PLearn::SoftSoftMaxVariable::recomputeSize(), PLearn::RowAtPositionVariable::recomputeSize(), PLearn::ReIndexedTargetVariable::recomputeSize(), PLearn::ProductVariable::recomputeSize(), PLearn::ProductTransposeVariable::recomputeSize(), PLearn::PowVariableVariable::recomputeSize(), PLearn::PlusVariable::recomputeSize(), PLearn::PlusScalarVariable::recomputeSize(), PLearn::PlusRowVariable::recomputeSize(), PLearn::PlusColumnVariable::recomputeSize(), PLearn::NLLNeighborhoodWeightsVariable::recomputeSize(), PLearn::MinusVariable::recomputeSize(), PLearn::MinusTransposedColumnVariable::recomputeSize(), PLearn::MinusScalarVariable::recomputeSize(), PLearn::MinusRowVariable::recomputeSize(), PLearn::MinusColumnVariable::recomputeSize(), PLearn::Min2Variable::recomputeSize(), PLearn::Max2Variable::recomputeSize(), PLearn::LogSoftSoftMaxVariable::recomputeSize(), PLearn::LogAddVariable::recomputeSize(), PLearn::LiftOutputVariable::recomputeSize(), PLearn::IsSmallerVariable::recomputeSize(), PLearn::IsLargerVariable::recomputeSize(), PLearn::GradientAdaboostCostVariable::recomputeSize(), PLearn::EqualScalarVariable::recomputeSize(), PLearn::DivVariable::recomputeSize(), PLearn::ConvolveVariable::recomputeSize(), PLearn::ColumnIndexVariable::recomputeSize(), PLearn::AffineTransformVariable::recomputeSize(), PLearn::SparseIncrementalAffineTransformVariable::reset(), resizeRValue(), PLearn::VarRowVariable::rfprop(), PLearn::VarElementVariable::rfprop(), PLearn::TransposeProductVariable::rfprop(), PLearn::TimesScalarVariable::rfprop(), PLearn::TimesRowVariable::rfprop(), PLearn::TimesConstantScalarVariable2::rfprop(), PLearn::TimesColumnVariable::rfprop(), PLearn::SoftmaxLossVariable::rfprop(), PLearn::RowAtPositionVariable::rfprop(), PLearn::ProductVariable::rfprop(), PLearn::ProductTransposeVariable::rfprop(), PLearn::PlusScalarVariable::rfprop(), PLearn::PlusRowVariable::rfprop(), PLearn::PlusColumnVariable::rfprop(), PLearn::OneHotSquaredLoss::rfprop(), PLearn::MinusScalarVariable::rfprop(), PLearn::ElementAtPositionVariable::rfprop(), PLearn::DotProductVariable::rfprop(), PLearn::DivVariable::rfprop(), setParents(), sources(), PLearn::WeightedSumSquareVariable::symbolicBprop(), PLearn::VarRowVariable::symbolicBprop(), PLearn::VarElementVariable::symbolicBprop(), PLearn::TransposeProductVariable::symbolicBprop(), PLearn::TimesVariable::symbolicBprop(), PLearn::TimesScalarVariable::symbolicBprop(), PLearn::TimesRowVariable::symbolicBprop(), PLearn::TimesConstantScalarVariable2::symbolicBprop(), PLearn::TimesColumnVariable::symbolicBprop(), PLearn::SoftmaxLossVariable::symbolicBprop(), PLearn::RowAtPositionVariable::symbolicBprop(), PLearn::ProductVariable::symbolicBprop(), PLearn::ProductTransposeVariable::symbolicBprop(), PLearn::PowVariableVariable::symbolicBprop(), PLearn::PlusVariable::symbolicBprop(), PLearn::PlusScalarVariable::symbolicBprop(), PLearn::PlusRowVariable::symbolicBprop(), PLearn::PlusColumnVariable::symbolicBprop(), PLearn::OneHotSquaredLoss::symbolicBprop(), PLearn::MinusVariable::symbolicBprop(), PLearn::MinusTransposedColumnVariable::symbolicBprop(), PLearn::MinusScalarVariable::symbolicBprop(), PLearn::MinusRowVariable::symbolicBprop(), PLearn::MinusColumnVariable::symbolicBprop(), PLearn::Min2Variable::symbolicBprop(), PLearn::Max2Variable::symbolicBprop(), PLearn::LogAddVariable::symbolicBprop(), PLearn::IndexAtPositionVariable::symbolicBprop(), PLearn::ElementAtPositionVariable::symbolicBprop(), PLearn::DotProductVariable::symbolicBprop(), PLearn::DivVariable::symbolicBprop(), PLearn::ColumnIndexVariable::symbolicBprop(), and unmarkAncestors().
Var PLearn::BinaryVariable::input2 [protected] |
Definition at line 60 of file BinaryVariable.h.
Referenced by ancestors(), PLearn::TransposeProductVariable::bbprop(), PLearn::ProductVariable::bbprop(), PLearn::ProductTransposeVariable::bbprop(), PLearn::PlusVariable::bbprop(), PLearn::PlusScalarVariable::bbprop(), PLearn::PlusRowVariable::bbprop(), PLearn::PlusColumnVariable::bbprop(), PLearn::MinusVariable::bbprop(), PLearn::MinusScalarVariable::bbprop(), PLearn::MinusRowVariable::bbprop(), PLearn::MinusColumnVariable::bbprop(), PLearn::DotProductVariable::bbprop(), BinaryVariable(), PLearn::WeightedSumSquareVariable::bprop(), PLearn::VarRowVariable::bprop(), PLearn::VarRowsVariable::bprop(), PLearn::VarElementVariable::bprop(), PLearn::VarColumnsVariable::bprop(), PLearn::TransposeProductVariable::bprop(), PLearn::TimesVariable::bprop(), PLearn::TimesScalarVariable::bprop(), PLearn::TimesRowVariable::bprop(), PLearn::TimesConstantScalarVariable2::bprop(), PLearn::TimesColumnVariable::bprop(), PLearn::SumVarianceOfLinearTransformedCategoricals::bprop(), PLearn::SumVarianceOfLinearTransformedBernoullis::bprop(), PLearn::SparseIncrementalAffineTransformVariable::bprop(), PLearn::SoftSoftMaxVariable::bprop(), PLearn::SoftmaxLossVariable::bprop(), PLearn::RowAtPositionVariable::bprop(), PLearn::ProductVariable::bprop(), PLearn::ProductTransposeVariable::bprop(), PLearn::PowVariableVariable::bprop(), PLearn::PlusVariable::bprop(), PLearn::PlusScalarVariable::bprop(), PLearn::PlusRowVariable::bprop(), PLearn::PlusColumnVariable::bprop(), PLearn::OneHotSquaredLoss::bprop(), PLearn::NegCrossEntropySigmoidVariable::bprop(), PLearn::MinusVariable::bprop(), PLearn::MinusTransposedColumnVariable::bprop(), PLearn::MinusScalarVariable::bprop(), PLearn::MinusRowVariable::bprop(), PLearn::MinusColumnVariable::bprop(), PLearn::Min2Variable::bprop(), PLearn::Max2Variable::bprop(), PLearn::MatrixSoftmaxLossVariable::bprop(), PLearn::MatrixOneHotSquaredLoss::bprop(), PLearn::MarginPerceptronCostVariable::bprop(), PLearn::LogSoftSoftMaxVariable::bprop(), PLearn::LogAddVariable::bprop(), PLearn::IndexAtPositionVariable::bprop(), PLearn::GradientAdaboostCostVariable::bprop(), PLearn::ElementAtPositionVariable::bprop(), PLearn::DotProductVariable::bprop(), PLearn::DivVariable::bprop(), PLearn::CrossEntropyVariable::bprop(), PLearn::ConvolveVariable::bprop(), PLearn::ColumnIndexVariable::bprop(), PLearn::AffineTransformVariable::bprop(), PLearn::WeightedSumSquareVariable::build_(), PLearn::VarRowVariable::build_(), PLearn::VarElementVariable::build_(), PLearn::TransposeProductVariable::build_(), PLearn::TimesVariable::build_(), PLearn::TimesScalarVariable::build_(), PLearn::TimesRowVariable::build_(), PLearn::TimesConstantScalarVariable2::build_(), PLearn::TimesColumnVariable::build_(), PLearn::SparseIncrementalAffineTransformVariable::build_(), PLearn::SoftmaxLossVariable::build_(), PLearn::RowAtPositionVariable::build_(), PLearn::ReIndexedTargetVariable::build_(), PLearn::ProjectionErrorVariable::build_(), PLearn::ProductVariable::build_(), PLearn::ProductTransposeVariable::build_(), PLearn::PowVariableVariable::build_(), PLearn::PlusVariable::build_(), PLearn::PlusScalarVariable::build_(), PLearn::PlusRowVariable::build_(), PLearn::PlusColumnVariable::build_(), PLearn::OneHotSquaredLoss::build_(), PLearn::NLLNeighborhoodWeightsVariable::build_(), PLearn::NegCrossEntropySigmoidVariable::build_(), PLearn::MulticlassLossVariable::build_(), PLearn::MinusVariable::build_(), PLearn::MinusTransposedColumnVariable::build_(), PLearn::MinusScalarVariable::build_(), PLearn::MinusRowVariable::build_(), PLearn::MinusColumnVariable::build_(), PLearn::MiniBatchClassificationLossVariable::build_(), PLearn::Min2Variable::build_(), PLearn::Max2Variable::build_(), PLearn::MatrixSoftmaxLossVariable::build_(), PLearn::MatrixOneHotSquaredLoss::build_(), PLearn::MarginPerceptronCostVariable::build_(), PLearn::LogSoftSoftMaxVariable::build_(), PLearn::LogAddVariable::build_(), PLearn::LiftOutputVariable::build_(), PLearn::IsSmallerVariable::build_(), PLearn::IsLargerVariable::build_(), PLearn::IndexAtPositionVariable::build_(), PLearn::GradientAdaboostCostVariable::build_(), PLearn::EqualVariable::build_(), PLearn::EqualScalarVariable::build_(), PLearn::ElementAtPositionVariable::build_(), PLearn::DotProductVariable::build_(), PLearn::DivVariable::build_(), PLearn::CrossEntropyVariable::build_(), PLearn::ColumnIndexVariable::build_(), PLearn::ClassificationLossVariable::build_(), PLearn::BinaryClassificationLossVariable::build_(), buildPath(), PLearn::SumVarianceOfLinearTransformedBernoullis::computeWsqnorm(), declareOptions(), PLearn::WeightedSumSquareVariable::fprop(), PLearn::VarRowVariable::fprop(), PLearn::VarRowsVariable::fprop(), PLearn::VarElementVariable::fprop(), PLearn::VarColumnsVariable::fprop(), PLearn::TransposeProductVariable::fprop(), PLearn::TimesVariable::fprop(), PLearn::TimesScalarVariable::fprop(), PLearn::TimesRowVariable::fprop(), PLearn::TimesConstantScalarVariable2::fprop(), PLearn::TimesColumnVariable::fprop(), PLearn::SumVarianceOfLinearTransformedCategoricals::fprop(), PLearn::SumVarianceOfLinearTransformedBernoullis::fprop(), PLearn::SparseIncrementalAffineTransformVariable::fprop(), PLearn::SoftSoftMaxVariable::fprop(), PLearn::SoftmaxLossVariable::fprop(), PLearn::DiagonalNormalSampleVariable::fprop(), PLearn::RowAtPositionVariable::fprop(), PLearn::ReIndexedTargetVariable::fprop(), PLearn::ProductVariable::fprop(), PLearn::ProductTransposeVariable::fprop(), PLearn::PowVariableVariable::fprop(), PLearn::PlusVariable::fprop(), PLearn::PlusScalarVariable::fprop(), PLearn::PlusRowVariable::fprop(), PLearn::PlusColumnVariable::fprop(), PLearn::OneHotSquaredLoss::fprop(), PLearn::NLLNeighborhoodWeightsVariable::fprop(), PLearn::NegCrossEntropySigmoidVariable::fprop(), PLearn::MulticlassLossVariable::fprop(), PLearn::MinusVariable::fprop(), PLearn::MinusTransposedColumnVariable::fprop(), PLearn::MinusScalarVariable::fprop(), PLearn::MinusRowVariable::fprop(), PLearn::MinusColumnVariable::fprop(), PLearn::MiniBatchClassificationLossVariable::fprop(), PLearn::Min2Variable::fprop(), PLearn::Max2Variable::fprop(), PLearn::MatrixSoftmaxLossVariable::fprop(), PLearn::MatrixOneHotSquaredLoss::fprop(), PLearn::MarginPerceptronCostVariable::fprop(), PLearn::LogSoftSoftMaxVariable::fprop(), PLearn::LogAddVariable::fprop(), PLearn::LiftOutputVariable::fprop(), PLearn::IsSmallerVariable::fprop(), PLearn::IsLargerVariable::fprop(), PLearn::IndexAtPositionVariable::fprop(), PLearn::GradientAdaboostCostVariable::fprop(), PLearn::EqualVariable::fprop(), PLearn::EqualScalarVariable::fprop(), PLearn::ElementAtPositionVariable::fprop(), PLearn::DotProductVariable::fprop(), PLearn::DivVariable::fprop(), PLearn::CrossEntropyVariable::fprop(), PLearn::ConvolveVariable::fprop(), PLearn::ColumnIndexVariable::fprop(), PLearn::ClassificationLossVariable::fprop(), PLearn::BinaryClassificationLossVariable::fprop(), PLearn::AffineTransformVariable::fprop(), makeDeepCopyFromShallowCopy(), markPath(), parents(), random_sources(), PLearn::VarRowsVariable::recomputeSize(), PLearn::VarColumnsVariable::recomputeSize(), PLearn::TransposeProductVariable::recomputeSize(), PLearn::TimesVariable::recomputeSize(), PLearn::SparseIncrementalAffineTransformVariable::recomputeSize(), PLearn::ProductVariable::recomputeSize(), PLearn::ProductTransposeVariable::recomputeSize(), PLearn::NLLNeighborhoodWeightsVariable::recomputeSize(), PLearn::MiniBatchClassificationLossVariable::recomputeSize(), PLearn::MatrixSoftmaxLossVariable::recomputeSize(), PLearn::MatrixOneHotSquaredLoss::recomputeSize(), PLearn::ConvolveVariable::recomputeSize(), PLearn::AffineTransformVariable::recomputeSize(), PLearn::SparseIncrementalAffineTransformVariable::reset(), resizeRValue(), PLearn::VarRowVariable::rfprop(), PLearn::VarElementVariable::rfprop(), PLearn::TransposeProductVariable::rfprop(), PLearn::TimesScalarVariable::rfprop(), PLearn::TimesRowVariable::rfprop(), PLearn::TimesConstantScalarVariable2::rfprop(), PLearn::TimesColumnVariable::rfprop(), PLearn::SoftmaxLossVariable::rfprop(), PLearn::RowAtPositionVariable::rfprop(), PLearn::ProductVariable::rfprop(), PLearn::ProductTransposeVariable::rfprop(), PLearn::PlusScalarVariable::rfprop(), PLearn::PlusRowVariable::rfprop(), PLearn::PlusColumnVariable::rfprop(), PLearn::OneHotSquaredLoss::rfprop(), PLearn::MinusScalarVariable::rfprop(), PLearn::ElementAtPositionVariable::rfprop(), PLearn::DotProductVariable::rfprop(), PLearn::DivVariable::rfprop(), setParents(), sources(), PLearn::WeightedSumSquareVariable::symbolicBprop(), PLearn::VarRowVariable::symbolicBprop(), PLearn::VarElementVariable::symbolicBprop(), PLearn::TransposeProductVariable::symbolicBprop(), PLearn::TimesVariable::symbolicBprop(), PLearn::TimesScalarVariable::symbolicBprop(), PLearn::TimesRowVariable::symbolicBprop(), PLearn::TimesConstantScalarVariable2::symbolicBprop(), PLearn::TimesColumnVariable::symbolicBprop(), PLearn::SoftmaxLossVariable::symbolicBprop(), PLearn::RowAtPositionVariable::symbolicBprop(), PLearn::ProductVariable::symbolicBprop(), PLearn::ProductTransposeVariable::symbolicBprop(), PLearn::PowVariableVariable::symbolicBprop(), PLearn::PlusVariable::symbolicBprop(), PLearn::PlusScalarVariable::symbolicBprop(), PLearn::PlusRowVariable::symbolicBprop(), PLearn::PlusColumnVariable::symbolicBprop(), PLearn::OneHotSquaredLoss::symbolicBprop(), PLearn::MinusVariable::symbolicBprop(), PLearn::MinusTransposedColumnVariable::symbolicBprop(), PLearn::MinusScalarVariable::symbolicBprop(), PLearn::MinusRowVariable::symbolicBprop(), PLearn::MinusColumnVariable::symbolicBprop(), PLearn::Min2Variable::symbolicBprop(), PLearn::Max2Variable::symbolicBprop(), PLearn::LogAddVariable::symbolicBprop(), PLearn::IndexAtPositionVariable::symbolicBprop(), PLearn::ElementAtPositionVariable::symbolicBprop(), PLearn::DotProductVariable::symbolicBprop(), PLearn::DivVariable::symbolicBprop(), PLearn::ColumnIndexVariable::symbolicBprop(), and unmarkAncestors().