|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRBNLearning.GradientGraphNode
RBNLearning.GradientGraphLikelihoodNode
public class GradientGraphLikelihoodNode
Constructor Summary | |
---|---|
GradientGraphLikelihoodNode(GradientGraph gg)
|
Method Summary | |
---|---|
void |
addToChildren(GradientGraphProbFormNode ggpfn,
boolean tv)
|
void |
addToChildren(GradientGraphProbFormNode ggpfn,
GradientGraphIndicatorNode ggin)
|
double |
evaluate()
Computes the likelihood (ignoring those terms that are not dependent on unknown atoms or parameters) Returns the likelihood[0] component. |
void |
evaluateBounds()
|
double |
evaluateGrad(int param)
for compatibility with GradientGraphNode .... |
void |
evaluateGradients()
|
double[] |
getSampleLikelihood(int sno)
|
double[][] |
getSampleLikelihoods()
|
double[][] |
getSmallgradient()
|
double[] |
gradientAsDouble()
|
double[] |
gradientAsDouble(int partial)
Returns the gradient (scaled to fit double precision) with all components where zeros[i]=1 set to 0 Corresponds to taking partial derivatives, ignoring parameters with index i. |
double[] |
gradientsumAsDouble()
|
double[] |
gradientsumAsDouble(int partial)
|
void |
initSampleLikelihoods(int size)
|
double[] |
likelihood()
|
double[] |
likelihoodsum()
|
double[] |
lowerBound()
|
java.lang.String |
name()
The name of this node. |
int |
numChildren()
|
void |
resetBounds()
|
void |
resetGradientSum()
|
void |
resetLikelihoodSum()
|
void |
resetValue()
|
void |
setSampleLikelihood(int i)
Sets the current likelihood value as the likelihood value for the i'th sample |
void |
updateGradSum()
|
void |
updateLikelihoodSum()
updates the likelihoodsum field by adding value |
double[] |
upperBound()
|
Methods inherited from class RBNLearning.GradientGraphNode |
---|
addToChildren, addToParents, ancestors, childrenSize, compareTo, equals, gradient, parents, reEvaluateUpstream, resetGradient, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GradientGraphLikelihoodNode(GradientGraph gg)
Method Detail |
---|
public void addToChildren(GradientGraphProbFormNode ggpfn, boolean tv)
public void addToChildren(GradientGraphProbFormNode ggpfn, GradientGraphIndicatorNode ggin)
public double evaluate()
evaluate
in class GradientGraphNode
public double evaluateGrad(int param)
evaluateGrad
in class GradientGraphNode
public void evaluateBounds()
evaluateBounds
in class GradientGraphNode
public void evaluateGradients()
public double[] gradientsumAsDouble()
public double[] gradientsumAsDouble(int partial)
public double[] gradientAsDouble()
public double[] gradientAsDouble(int partial)
zeros
-
public void initSampleLikelihoods(int size)
public double[] likelihood()
public double[] likelihoodsum()
public double[] lowerBound()
public double[] upperBound()
public java.lang.String name()
name
in class GradientGraphNode
public int numChildren()
public void resetValue()
resetValue
in class GradientGraphNode
public void resetLikelihoodSum()
public void resetGradientSum()
public void resetBounds()
public void setSampleLikelihood(int i)
public double[][] getSampleLikelihoods()
public double[] getSampleLikelihood(int sno)
public void updateLikelihoodSum()
public void updateGradSum()
public double[][] getSmallgradient()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |