tic = System.currentTimeMillis();
PropertyPredictionDataSet ds = DataSetFactory.createPropertyPredictionDataSet(new GeneralPredictionDataSetParameters(dataset, blackLists, instances, 3, false, true));
toc = System.currentTimeMillis();
double dsComp = toc-tic;
FeatureVectorKernel k = new WLSubTreeKernel(6,true);
System.out.println("WL: " + frac);
tic = System.currentTimeMillis();
k.computeFeatureVectors(ds.getGraphs());
toc = System.currentTimeMillis();
comp[i] = (toc-tic) + dsComp;
}
res = new Result(comp, "comp time");
resTable.addResult(res);
//}
//System.out.println(resTable);
//resTable.newRow("WL Kernel");
//for (double frac : fractionsSlow) {
comp = new double[seeds.length];
for (int i = 0; i < seeds.length; i++) {
createGeoDataSet((int)(1000 * frac), frac, seeds[i], "http://data.bgs.ac.uk/ref/Lexicon/hasTheme");
tic = System.currentTimeMillis();
PropertyPredictionDataSet ds = DataSetFactory.createPropertyPredictionDataSet(new GeneralPredictionDataSetParameters(dataset, blackLists, instances, 3, false, true));
toc = System.currentTimeMillis();
double dsComp = toc-tic;
GraphKernel k = new WLSubTreeKernel(6,true);
System.out.println("WL: " + frac);
tic = System.currentTimeMillis();
k.compute(ds.getGraphs());
toc = System.currentTimeMillis();
comp[i] = (toc-tic) + dsComp;
}
res = new Result(comp, "comp time");
resTable.addResult(res);