for (int d = 1; d < 4; d++) {
for (int it : iterations2) {
resTable.newRow("WL RDF, " + d + ", " + it);
RDFWLSubTreeKernel k = new RDFWLSubTreeKernel(it, d, false, true, true, false);
RDFGraphKernelExperiment exp = new RDFGraphKernelExperiment(k, seeds, svmParms, ts, instances, labels, new ArrayList<Statement>(), evalFuncs);
System.out.println("Running WL RDF, it: " + it);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
}
System.out.println(resTable);
}
for (int d = 1; d < 4; d++) {
resTable.newRow("WL RDF type, d " + d);
for (int it : iterations2) {
RDFWLSubTreeSlashBurnKernel k = new RDFWLSubTreeSlashBurnKernel(it, d, false, true, true);
k.setHubMap(GraphUtils.createRDFTypeHubMap(ts, false));
RDFGraphKernelExperiment exp = new RDFGraphKernelExperiment(k, seeds, svmParms, ts, instances, labels, new ArrayList<Statement>(), evalFuncs);
System.out.println("Running WL RDF, type it: " + it);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
}
System.out.println(resTable);
}
//*/
int[] hf = {0,1,2,3,4,5,6,7};
for (int h : hf) {
for (int i : depths) {
resTable.newRow("RDF WL NonSig " + h);
for (int it : iterations2) {
RDFWLSubTreeSlashBurnKernel k = new RDFWLSubTreeSlashBurnKernel(it, i, false, true, true);
k.setHubMap(GraphUtils.createNonSigHubMap(nonSigDegreeHubs, h));
//KernelExperiment<RDFFeatureVectorKernel> exp = new RDFLinearKernelExperiment(k, seeds, linParms, dataset, instances, target, blackList, evalFuncs);
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, ts, instances, labels, new ArrayList<Statement>(), evalFuncs);
System.out.println("Running WL RDF NonSig: " + i + " " + it + " " + h);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
}
}
System.out.println(resTable);
}
for (int h : hf) {
for (int i : depths) {
resTable.newRow("RDF WL SB " + h);
for (int it : iterations2) {
RDFWLSubTreeSlashBurnKernel k = new RDFWLSubTreeSlashBurnKernel(it, i, false, true, true);
k.setHubMap(GraphUtils.createHubMap(hubs, h));
//KernelExperiment<RDFFeatureVectorKernel> exp = new RDFLinearKernelExperiment(k, seeds, linParms, dataset, instances, target, blackList, evalFuncs);
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, ts, instances, labels, new ArrayList<Statement>(), evalFuncs);