|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.grmm.types.FactorGraph cc.mallet.grmm.types.UndirectedModel cc.mallet.grmm.learning.ACRF.UnrolledGraph
public static class ACRF.UnrolledGraph
Constructor Summary | |
---|---|
ACRF.UnrolledGraph(Instance inst,
ACRF.Template[] templates,
ACRF.Template[] fixed)
|
|
ACRF.UnrolledGraph(Instance inst,
ACRF.Template[] templates,
java.util.List fixed,
boolean setupPotentials)
Creates a graphical model for a given instance. |
Method Summary | |
---|---|
void |
addClique(ACRF.UnrolledVarSet clique)
|
double[] |
computeCurrentResids()
|
Variable |
get(int idx)
Returns a variable from this model with a given index. |
Assignment |
getAssignment()
Returns an Assignment object that corresponds to the LabelSequence for which this graph was unrolled. |
int |
getIndex(Variable var)
Returns a unique numeric index for a variable in this model. |
int |
getIndex(VarSet vs)
|
double[] |
getLastResids()
|
double |
getLogNumAssignments()
|
ACRF.UnrolledVarSet |
getUnrolledVarSet(Factor f)
|
ACRF.UnrolledVarSet |
getUnrolledVarSet(int cnum)
|
int |
numSlices()
|
int |
observedValue(Variable var)
|
void |
setObserved(Variable var,
int outcome)
|
java.util.Iterator |
unrolledVarSetIterator()
|
Variable |
varOfIndex(int t,
int j)
|
Methods inherited from class cc.mallet.grmm.types.UndirectedModel |
---|
addFactor, createBoltzmannMachine, getEdgeSet, isConnected |
Methods inherited from class cc.mallet.grmm.types.FactorGraph |
---|
addFactor, afterFactorAdd, allFactorsContaining, allFactorsContaining, allFactorsOf, allFactorsOf, almostEquals, almostEquals, argmax, assignmentIterator, asTable, beforeFactorAdd, clear, containsVar, divideBy, dump, dump, dumpToString, duplicate, entropy, exponentiate, extractMax, extractMax, extractMax, factorOf, factorOf, factorOf, factorOf, factorProduct, factors, factorsIterator, findVariable, getAdjacentVertices, getDegree, getFactor, getIndex, getInferenceCache, getVariable, isAdjacent, isNaN, logify, logValue, logValue, logValue, marginalize, marginalize, marginalize, marginalizeOut, marginalizeOut, multiply, multiplyBy, normalize, numVariables, prettyOutputString, printAsDot, printAsDot, remove, remove, sample, sampleContinuousVars, setInferenceCache, slice, slice, sum, toString, value, value, variablesIterator, variablesSet, varSet, varSetIterator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ACRF.UnrolledGraph(Instance inst, ACRF.Template[] templates, ACRF.Template[] fixed)
public ACRF.UnrolledGraph(Instance inst, ACRF.Template[] templates, java.util.List fixed, boolean setupPotentials)
Method Detail |
---|
public void addClique(ACRF.UnrolledVarSet clique)
public double[] getLastResids()
public Assignment getAssignment()
public void setObserved(Variable var, int outcome)
public int observedValue(Variable var)
public java.util.Iterator unrolledVarSetIterator()
public ACRF.UnrolledVarSet getUnrolledVarSet(int cnum)
public int getIndex(VarSet vs)
public Variable get(int idx)
FactorGraph
getIndex and get are inverses. That is, if idx == getIndex (var), then get(idx) will return var.
get
in class FactorGraph
FactorGraph.getIndex(Variable)
public int getIndex(Variable var)
FactorGraph
getIndex and get are inverses. That is, if idx == getIndex (var), then get(idx) will return var.
getIndex
in class FactorGraph
var
- A variable contained in this graphical model
FactorGraph.get(int)
public double getLogNumAssignments()
public Variable varOfIndex(int t, int j)
public int numSlices()
public double[] computeCurrentResids()
public ACRF.UnrolledVarSet getUnrolledVarSet(Factor f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |