tuffy.infer
Class InferComponent
java.lang.Object
tuffy.infer.InferComponent
public class InferComponent
- extends java.lang.Object
Performing inference on one MRF component.
Method Summary |
Component |
getComponent()
|
double |
getCost()
|
void |
inferMAP(int totalTries,
int totalFlipsPerTry)
Run partition-aware MAP inference with the Gauss-Seidel scheme. |
void |
inferMarginal(int totalSamples,
int totalFlipsPerSample)
Run partition-aware marginal inference with the Gauss-Seidel scheme. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InferComponent
public InferComponent(Component comp)
getComponent
public Component getComponent()
getCost
public double getCost()
inferMAP
public void inferMAP(int totalTries,
int totalFlipsPerTry)
- Run partition-aware MAP inference with the Gauss-Seidel scheme.
inferMarginal
public void inferMarginal(int totalSamples,
int totalFlipsPerSample)
- Run partition-aware marginal inference with the Gauss-Seidel scheme.