res.setLabel("runtime");
for (long seed : seeds) {
createGeoDataSet(seed,frac,6,"http://data.bgs.ac.uk/ref/Lexicon/hasLithogenesis");
KernelExperiment<RDFGraphKernel> exp = new RDFKernelRunTimeExperiment(new ECML2013RDFWLSubTreeKernel(iteration, depth, inference, true, false), seeds, parms, dataset, instances, labels, blackList);
System.out.println("Running WL RDF: " + frac);
exp.run();
res.addResult(exp.getResults().get(0));
}
resTable.addResult(res);
}
resTable.newRow("IST");
for (double frac : fractions) {
Result res = new Result();
res.setLabel("runtime");
for (long seed : seeds) {
createGeoDataSet(seed,frac,6,"http://data.bgs.ac.uk/ref/Lexicon/hasLithogenesis");
KernelExperiment<RDFGraphKernel> exp = new RDFKernelRunTimeExperiment(new RDFIntersectionSubTreeKernel(depth, 1, inference, true, false), seeds, parms, dataset, instances, labels, blackList);
System.out.println("Running IST: " + frac);
exp.run();
res.addResult(exp.getResults().get(0));
}
resTable.addResult(res);
}
long tic, toc;
resTable.newRow("WL");
for (double frac : fractions) {
Result res = new Result();
res.setLabel("runtime");
for (long seed : seeds) {
createGeoDataSet(seed,frac,6,"http://data.bgs.ac.uk/ref/Lexicon/hasLithogenesis");
tic = System.currentTimeMillis();
PropertyPredictionDataSet ds = DataSetFactory.createPropertyPredictionDataSet(new GeneralPredictionDataSetParameters(dataset, blackLists, instances, 3, false, true));
toc = System.currentTimeMillis();
KernelExperiment<GraphKernel> exp = new GraphKernelRunTimeExperiment(new ECML2013WLSubTreeKernel(iteration), seeds, parms, ds.getGraphs(), labels);
System.out.println("Running WL: " + frac);
exp.run();
res.addResult(exp.getResults().get(0));
double[] comps = {2 * (toc-tic) + res.getScore()};
Result resC = new Result(comps,"comp time 2");
res.addResult(resC);
}
resTable.addResult(res);
}
/*
resTable.newRow("");
for (double frac : fractions) {
createGeoDataSet(11,frac,"http://data.bgs.ac.uk/ref/Lexicon/hasLithogenesis");
tic = System.currentTimeMillis();
PropertyPredictionDataSet ds = DataSetFactory.createPropertyPredictionDataSet(new GeneralPredictionDataSetParameters(dataset, blackLists, instances, 3, false, true));
toc = System.currentTimeMillis();
KernelExperiment<GraphKernel> exp = new GraphKernelExperiment(new ECML2013IntersectionGraphPathKernel(2,1), seeds, parms, ds.getGraphs(), labels);
System.out.println("Running IGP: " + frac);
exp.run();
double[] comps = {0,0};
comps[0] = 2*(toc-tic) + exp.getResults().get(exp.getResults().size()-1).getScore();
comps[1] = 2*(toc-tic) + exp.getResults().get(exp.getResults().size()-1).getScore();
Result resC = new Result(comps,"comp time 2");
exp.getResults().get(exp.getResults().size()-1).addResult(resC);
resTable.addResult(exp.getResults().get(exp.getResults().size()-1));
}
*/
resTable.newRow("IGW");
for (double frac : fractions) {
Result res = new Result();
res.setLabel("runtime");
for (long seed : seeds) {
createGeoDataSet(seed,frac,6,"http://data.bgs.ac.uk/ref/Lexicon/hasLithogenesis");
tic = System.currentTimeMillis();
PropertyPredictionDataSet ds = DataSetFactory.createPropertyPredictionDataSet(new GeneralPredictionDataSetParameters(dataset, blackLists, instances, 3, false, true));
toc = System.currentTimeMillis();
KernelExperiment<GraphKernel> exp = new GraphKernelRunTimeExperiment(new ECML2013IntersectionGraphWalkKernel(2,1), seeds, parms, ds.getGraphs(), labels);
System.out.println("Running IGW: " + frac);
exp.run();
res.addResult(exp.getResults().get(0));
double[] comps = {2 * (toc-tic) + res.getScore()};
Result resC = new Result(comps,"comp time 2");
res.addResult(resC);
}