Skip to content

Commit

Permalink
QTL eval
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBuehmann committed Sep 23, 2016
1 parent 2854470 commit 0be0aca
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public void run(int maxNrOfProcessedQueries, int maxTreeDepth, int[] exampleInte
maxNrOfProcessedQueries = queries.size();
}

queries = filter(queries, maxNrOfProcessedQueries / maxTreeDepth);
queries = filter(queries, (int) Math.ceil((double) maxNrOfProcessedQueries / maxTreeDepth));
// queries = queries.subList(0, Math.min(queries.size(), maxNrOfProcessedQueries));
logger.info("#queries to process: " + queries.size());

Expand Down Expand Up @@ -1446,6 +1446,8 @@ private RDFResourceTree getQueryTree(String resource){
RDFResourceTree tree = queryTreeFactory.getQueryTree(resource, cbd, maxTreeDepth);
MonitorFactory.getTimeMonitor(TimeMonitors.TREE_GENERATION.name()).stop();

System.out.println(tree.getStringRepresentation());

// keep track of tree size
int size = QueryTreeUtils.getNrOfNodes(tree);
treeSizeStats.addValue(size);
Expand Down Expand Up @@ -1642,8 +1644,7 @@ public int compare(Triple o1, Triple o2) {
Set<String> resourcesTmp = new HashSet<>(partialResult);

if(resourcesTmp.isEmpty()) {
System.err.println("Empty query result");
System.err.println(q);
logger.error("Empty query result\n" + q);
// System.exit(0);
return Collections.EMPTY_LIST;
}
Expand Down

0 comments on commit 0be0aca

Please sign in to comment.