List<List<Result>> res = new ArrayList<List<Result>>();
for (long seed : seeds) {
long[] s2 = new long[1];
s2[0] = seed;
createGeoDataSet(seed, fraction, minSize, "http://data.bgs.ac.uk/ref/Lexicon/hasTheme");
KernelExperiment<RDFGraphKernel> exp = new RDFOldKernelExperiment(new RDFIntersectionPartialSubTreeKernel(i, 0.01, inference, true, false), s2, parms, dataset, instances, labels, blackList);
res.add(exp.getResults());
System.out.println("Running IPST: " + i);
if (experimenter.hasSpace()) {
experimenter.addExperiment(exp);
}
}
experimenter.stop();
while (expT.isAlive()) {
try {
Thread.sleep(1000);
} catch (Exception e) {
e.printStackTrace();
}
}
for (Result res2 : Result.mergeResultLists(res)) {
resTable.addResult(res2);
}
}
saveResults(resTable, "geo_theme.ser");
inference = true;
for (int i = 1; i <= depth; i++) {
resTable.newRow("IPST, inference, depth="+i);
Experimenter experimenter = new Experimenter(2);
Thread expT = new Thread(experimenter);
expT.setDaemon(true);
expT.start();
List<List<Result>> res = new ArrayList<List<Result>>();
for (long seed : seeds) {
long[] s2 = new long[1];
s2[0] = seed;
createGeoDataSet(seed, fraction, minSize, "http://data.bgs.ac.uk/ref/Lexicon/hasTheme");
KernelExperiment<RDFGraphKernel> exp = new RDFOldKernelExperiment(new RDFIntersectionPartialSubTreeKernel(i, 0.01, inference, true, false), s2, parms, dataset, instances, labels, blackList);
res.add(exp.getResults());
System.out.println("Running IPST: " + i);
if (experimenter.hasSpace()) {
experimenter.addExperiment(exp);