int[] iterations = {0,2,4,6};
List<EvaluationFunction> evalFuncs = new ArrayList<EvaluationFunction>();
evalFuncs.add(new Accuracy());
evalFuncs.add(new F1());
List<Double> targets = EvaluationUtils.createTarget(labels);
LibLINEARParameters linParms = new LibLINEARParameters(LibLINEARParameters.SVC_DUAL, cs);
linParms.setEvalFunction(new Accuracy());
linParms.setDoCrossValidation(true);
linParms.setNumFolds(10);
Map<Double, Double> counts = EvaluationUtils.computeClassCounts(targets);
int[] wLabels = new int[counts.size()];