for (int it : iterations) {
resTable.newRow("RDF WL, " + i + ", " + it);
RDFWLSubTreeKernel k = new RDFWLSubTreeKernel(it, i, inference, true, forward, false);
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, dataset, instances, target, blackList, evalFuncs);
System.out.println("Running WL RDF: " + i + " " + it);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
}
}
System.out.println(resTable);
//*/
///*
for (int i : depths) {
for (int it : iterations) {
resTable.newRow("RDF WL TYPE, " + i + ", " + it);
RDFWLSubTreeSlashBurnKernel k = new RDFWLSubTreeSlashBurnKernel(it, i, inference, true, forward);
k.setHubMap(GraphUtils.createRDFTypeHubMap(dataset, inference));
k.setRelabel(relabel);
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, dataset, instances, target, blackList, evalFuncs);
System.out.println("Running WL RDF TYPE: " + i + " " + it);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
}
}
System.out.println(resTable);
///*
for (int h : hf) {
for (int i : depths) {
for (int it : iterations) {
resTable.newRow("RDF WL Regular Degree, " + h + ", " + i + ", " + it);
RDFWLSubTreeSlashBurnKernel k = new RDFWLSubTreeSlashBurnKernel(it, i, inference, true, forward);
k.setHubMap(GraphUtils.createNonSigHubMap(nonSigDegreeHubs, h));
k.setRelabel(relabel);
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, dataset, instances, target, blackList, evalFuncs);
System.out.println("Running WL RDF Regular Degree: " + 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) {
for (int it : iterations) {
resTable.newRow("RDF WL Signature Degree (SB), " + h + ", " + i + ", " + it);
RDFWLSubTreeSlashBurnKernel k = new RDFWLSubTreeSlashBurnKernel(it, i, inference, true, forward);
k.setHubMap(GraphUtils.createHubMap(hubs, h));
k.setRelabel(relabel);
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, dataset, instances, target, blackList, evalFuncs);
System.out.println("Running WL RDF fwd SB: " + i + " " + it + " " + h);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
}
}
}
System.out.println(resTable);
//*/
///*
for (int i : depths) {
resTable.newRow("RDF IST, " + i);
RDFIntersectionSubTreeKernel k = new RDFIntersectionSubTreeKernel(i, 1, inference, true);
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, dataset, instances, target, blackList, evalFuncs);
System.out.println("Running RDF IST: " + i);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
}
System.out.println(resTable);
//*/
///*
for (int i : depths) {
resTable.newRow("RDF IST TYPE, " + i);
RDFIntersectionSubTreeSlashBurnKernel k = new RDFIntersectionSubTreeSlashBurnKernel(i, 1, inference, true);
k.setHubMap(GraphUtils.createRDFTypeHubMap(dataset, inference));
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, dataset, instances, target, blackList, evalFuncs);
System.out.println("Running RDF IST TYPE: " + i);
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 IST Regular Degree, " + h + ", " + i);
RDFIntersectionSubTreeSlashBurnKernel k = new RDFIntersectionSubTreeSlashBurnKernel(i, 1, inference, true);
k.setHubMap(GraphUtils.createNonSigHubMap(nonSigDegreeHubs, h));
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, dataset, instances, target, blackList, evalFuncs);
System.out.println("Running RDF IST Regular Degree: " + i + " " + 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 IST Signature Degree (SB), " + h + ", " + i);
RDFIntersectionSubTreeSlashBurnKernel k = new RDFIntersectionSubTreeSlashBurnKernel(i, 1, inference, true);
k.setHubMap(GraphUtils.createHubMap(hubs, h));
KernelExperiment<RDFGraphKernel> exp = new RDFGraphKernelExperiment(k, seeds, svmParms, dataset, instances, target, blackList, evalFuncs);
System.out.println("Running RDF IST Signature Degree (SB): " + i + " " + h);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
}
}
System.out.println(resTable);