Map<String, Integer> labelMap = new TreeMap<String, Integer>();
labelMap.put("true", -1);
labelMap.put("false", 1);
LibSVMParameters param = new LibSVMParameters(LibSVMParameters.NU_SVC, cs);
//param.setVerbose(true);
int[] weightLabels = {-1, 1};
double[] weights = {1,1};
param.setWeightLabels(weightLabels);
param.setWeights(weights);
LibSVMModel model = LibSVM.trainSVMModel(matrix, LibSVM.createTargets(labels, labelMap), param);
double[][] testMatrix = combineTestKernels(testMatrixA, testMatrixB);
//double[][] testMatrix = matrix;