private Quadruple<Integer, Double, Map<Integer, double[]>, Map<Integer, double[]>> expectedCountsForADoc(double[][] weights, int docIndex) {
return expectedCountsAndValueForADoc(weights, docIndex, false, true);
}
@Override
public CliquePotentialFunction getCliquePotentialFunction(double[] x) {
<BUG>double[][] weights = to2D(x);
return new LinearCliquePotentialFunction(weights);</BUG>
}
private Map<Integer, double[]> sparseE(Set<Integer> activeFeatures) {
Map<Integer, double[]> aMap = new HashMap<Integer, double[]>(activeFeatures.size());

private Quadruple<Integer, Double, Map<Integer, double[]>, Map<Integer, double[]>> expectedCountsForADoc(double[][] weights, int docIndex) {
return expectedCountsAndValueForADoc(weights, docIndex, false, true);
}
@Override
public CliquePotentialFunction getCliquePotentialFunction(double[] x) {
to2D(x, weights);
return new LinearCliquePotentialFunction(weights);
}
private Map<Integer, double[]> sparseE(Set<Integer> activeFeatures) {
Map<Integer, double[]> aMap = new HashMap<Integer, double[]>(activeFeatures.size());
