ds.removeVertexAndEdgeLabels();
}
resTable.newRow("WL");
for (int it : iterations) {
KernelExperiment<GraphKernel> exp = new GraphKernelExperiment(new ECML2013WLSubTreeKernel(it), seeds, parms, ds.getGraphs(), labels);
System.out.println("Running WL: " + it);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
double[] comps = {0,0};
comps[0] = toc-tic;
comps[1] = toc-tic;
Result resC = new Result(comps,"comp time 2");
resTable.addResult(resC);
}
}
saveResults(resTable, "affiliation.ser");
/*
dataSetsParams = new ArrayList<GeneralPredictionDataSetParameters>();
dataSetsParams.add(new GeneralPredictionDataSetParameters(dataset, blackLists, instances, 1, false, false));
dataSetsParams.add(new GeneralPredictionDataSetParameters(dataset, blackLists, instances, 2, false, false));
dataSetsParams.add(new GeneralPredictionDataSetParameters(dataset, blackLists, instances, 1, false, true));
dataSetsParams.add(new GeneralPredictionDataSetParameters(dataset, blackLists, instances, 2, false, true));
*/
for (GeneralPredictionDataSetParameters params : dataSetsParams) {
tic = System.currentTimeMillis();
PropertyPredictionDataSet ds = DataSetFactory.createPropertyPredictionDataSet(params);
toc = System.currentTimeMillis();
if (blankLabels) {
ds.removeVertexAndEdgeLabels();
}
resTable.newRow("IGP");
for (int it : iterationsIG) {
KernelExperiment<GraphKernel> exp = new GraphKernelExperiment(new ECML2013IntersectionGraphPathKernel(it,1), seeds, parms, ds.getGraphs(), labels);
System.out.println("Running IGP: " + it);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
double[] comps = {0,0};
comps[0] = toc-tic;
comps[1] = toc-tic;
Result resC = new Result(comps,"comp time 2");
resTable.addResult(resC);
}
}
saveResults(resTable, "affiliation.ser");
for (GeneralPredictionDataSetParameters params : dataSetsParams) {
tic = System.currentTimeMillis();
PropertyPredictionDataSet ds = DataSetFactory.createPropertyPredictionDataSet(params);
toc = System.currentTimeMillis();
if (blankLabels) {
ds.removeVertexAndEdgeLabels();
}
resTable.newRow("IGW");
for (int it : iterationsIG) {
KernelExperiment<GraphKernel> exp = new GraphKernelExperiment(new ECML2013IntersectionGraphWalkKernel(it,1), seeds, parms, ds.getGraphs(), labels);
System.out.println("Running IGW: " + it);
exp.run();
for (Result res : exp.getResults()) {
resTable.addResult(res);
}
double[] comps = {0,0};
comps[0] = toc-tic;