Package org.data2semantics.proppred.kernels.rdfgraphkernels

Examples of org.data2semantics.proppred.kernels.rdfgraphkernels.RDFWLSubTreeKernel.computeFeatureVectors()


   
    // 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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.