Package org.data2semantics.proppred.kernels.rdfgraphkernels

Examples of org.data2semantics.proppred.kernels.rdfgraphkernels.RDFPairKernel


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

TOP

Related Classes of org.data2semantics.proppred.kernels.rdfgraphkernels.RDFPairKernel

Copyright © 2018 www.massapicom. 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.