code: public int getGoldConfigIdxPred(int factorId) {
          VarSet vars = VarSet.getVarsOfType(fgLatPred.getFactor(factorId).getVars(), VarType.PREDICTED);
          return goldConfig.getConfigIndexOfSubset(vars);
      }
docs: Gets the gold configuration index of the predicted variables for the given factor.