if (unrolled.factors ().size () == 0) {
System.err.println ("WARNING: FactorGraph for instance " + instance.getName () + " : no factors.");
continue;
}
Inferencer inf = acrf.getInferencer ();
inf.computeMarginals (unrolled);
Assignment target = unrolled.getAssignment ();
for (Iterator it = unrolled.unrolledVarSetIterator (); it.hasNext ();) {
ACRF.UnrolledVarSet vs = (ACRF.UnrolledVarSet) it.next ();
Factor marg = inf.lookupMarginal (vs);
for (AssignmentIterator assnIt = vs.assignmentIterator (); assnIt.hasNext (); assnIt.advance ()) {
if (marg.value (assnIt) > wrongWrongThreshold) {
Assignment assn = assnIt.assignment ();
for (int vi = 0; vi < vs.size (); vi++) {
Variable var = vs.get (vi);