|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRBNLearning.GradientGraphNode
RBNLearning.GradientGraphProbFormNode
RBNLearning.GradientGraphIndicatorNode
public class GradientGraphIndicatorNode
Field Summary |
---|
Fields inherited from class RBNLearning.GradientGraphProbFormNode |
---|
dependsOnParam |
Constructor Summary | |
---|---|
GradientGraphIndicatorNode(GradientGraph gg,
ProbForm pf,
RelStruc A,
Instantiation I,
int inputcasenoarg,
int observcasenoarg)
|
Method Summary | |
---|---|
double |
evaluate()
Evaluate this GradientGraphNode using current values of parameters and the current instantiation for unobserved atoms. |
void |
evaluateBounds()
|
double |
evaluateGrad(int param)
|
int |
getCurrentInst()
|
void |
initSampledVals(int size)
initializes sampledVals to an array of size 'size' |
int |
inputcaseno()
|
Atom |
myatom()
|
int |
observcaseno()
|
void |
setCurrentInst(boolean tv)
Sets the current instantiation according to the truth value tv |
void |
setCurrentInst(int sno)
Sets the current instantiation according to the value in the sno's sample |
void |
setSampleVal(int sno)
Sets value in sno's sample to current instantiation |
void |
setSampleVal(int sno,
boolean tv)
Sets value in sno's sample to tv |
void |
toggleCurrentInst()
|
void |
toggleSampleVal(int sno)
Toggles value in sno's sample |
void |
unset()
Resets the currentInst field to -1, i.e. |
Methods inherited from class RBNLearning.GradientGraphProbFormNode |
---|
constructGGPFN, dependsOn, lowerBound, name, resetBounds, upperBound |
Methods inherited from class RBNLearning.GradientGraphNode |
---|
addToChildren, addToParents, ancestors, childrenSize, compareTo, equals, gradient, parents, reEvaluateUpstream, resetGradient, resetValue, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GradientGraphIndicatorNode(GradientGraph gg, ProbForm pf, RelStruc A, Instantiation I, int inputcasenoarg, int observcasenoarg) throws java.lang.RuntimeException, RBNCompatibilityException
java.lang.RuntimeException
RBNCompatibilityException
Method Detail |
---|
public double evaluate()
GradientGraphNode
evaluate
in class GradientGraphNode
public void evaluateBounds()
evaluateBounds
in class GradientGraphNode
public double evaluateGrad(int param)
evaluateGrad
in class GradientGraphNode
public Atom myatom()
public int inputcaseno()
public int observcaseno()
public void setCurrentInst(int sno)
public void setSampleVal(int sno, boolean tv)
public void setSampleVal(int sno)
public void toggleSampleVal(int sno)
public void setCurrentInst(boolean tv)
public int getCurrentInst()
public void initSampledVals(int size)
public void toggleCurrentInst()
public void unset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |