}
// create a list of doubles as train target
List<Double> target = EvaluationUtils.createTarget(labels);
RDFPairKernel kernel = new RDFPairKernel();
RDFWLSubTreeKernel k1 = new RDFWLSubTreeKernel(4,2,true,true);
RDFWLSubTreeKernel k2 = new RDFWLSubTreeKernel(4,2,true,true);
// Compute the kernel
double[][] matrix = kernel.compute(dataset, instances, blacklist, k1, k2);
double[] cs = {0.001, 0.01, 0.1, 1, 10, 100, 1000};
LibSVMParameters parms = new LibSVMParameters(LibSVMParameters.C_SVC, cs);
parms.setWeightLabels(EvaluationUtils.computeWeightLabels(target));