|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttuffy.infer.InferComponent
public class InferComponent
Performing inference on one MRF component.
| Field Summary | |
|---|---|
private Component |
comp
|
private double |
lowCost
|
| Constructor Summary | |
|---|---|
InferComponent(Component comp)
|
|
| Method Summary | |
|---|---|
Component |
getComponent()
|
double |
getCost()
|
private double |
inferGaussSeidelMap(int rounds,
int ntries,
int nflips)
Gauss-Seidel MAP inference scheme. |
private void |
inferGaussSeidelMarginal(int rounds,
int nsamples,
int nflips)
Gauss-Seidel MAP inference scheme. |
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. |
private void |
initTruthRandom()
|
private double |
recalcCost()
Recalculate the cost on this component, which is the sum of the cost on the MRF of each partition. |
private void |
restoreLowLowTruth()
|
private void |
saveLowLowTruth()
|
private void |
setMrfInitStrategy(MRF.INIT_STRATEGY strategy)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Component comp
private double lowCost
| Constructor Detail |
|---|
public InferComponent(Component comp)
| Method Detail |
|---|
public double getCost()
public Component getComponent()
public void inferMAP(int totalTries,
int totalFlipsPerTry)
public void inferMarginal(int totalSamples,
int totalFlipsPerSample)
private void initTruthRandom()
private void setMrfInitStrategy(MRF.INIT_STRATEGY strategy)
private double inferGaussSeidelMap(int rounds,
int ntries,
int nflips)
rounds - ntries - nflips - total number of flips per try in one round
private void inferGaussSeidelMarginal(int rounds,
int nsamples,
int nflips)
rounds - ntries - nflips - total number of flips per try in one roundprivate void saveLowLowTruth()
private void restoreLowLowTruth()
private double recalcCost()
MRF.recalcCost()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||