// We remove classes with fewer than 5 instances
EvaluationUtils.removeSmallClasses(instances, labels, 5);
// Create the RDFFeatureVectorKernel that we are going to use
RDFFeatureVectorKernel kernel = new RDFWLSubTreeKernel(6,3,true,true);
// Compute feature vectors
SparseVector[] featureVectors = kernel.computeFeatureVectors(dataset, instances, blackList);
// Create a list of doubles as target, with our labelMap, so that we can use it later on (i.e. get the reverseMap)
Map<Value, Double> labelMap = new HashMap<Value, Double>();
List<Double> target = EvaluationUtils.createTarget(labels, labelMap);