code: public FgInferencer decode(FgModel model, UFgExample ex) {
          // Run inference.
          FactorGraph fgLatPred = ex.getFactorGraph();
          fgLatPred.updateFromModel(model);
          FgInferencer infLatPred = prm.infFactory.getInferencer(fgLatPred);
          infLatPred.run();        
          decode(infLatPred, ex);
          return infLatPred;
      }
docs: Runs inference and computes the MBR variable configuration. The outputs
  are stored on the class, and can be queried after this call to decode.
  
  @param model The input model.
  @param ex The input data.
  @return the FgInferencer that was used.