Skip to content

Commit

Permalink
Better split if size to big.
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBuehmann committed Sep 23, 2016
1 parent a7ee991 commit 40298b6
Show file tree
Hide file tree
Showing 5 changed files with 389 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,13 @@ private EvaluatedRDFResourceTree evaluateSimple(RDFResourceTree tree, boolean us
double specifityScore = 0d;
if(useSpecifity){
specifityScore = Math.log(nrOfSpecificNodes);
} else {
specifityScore = 1 / (double) nrOfSpecificNodes;
}

//3.compute the total score
double score = coverageWeight * coverageScore + specifityWeight * specifityScore;

QueryTreeScore queryTreeScore = new QueryTreeScore(score, coverageScore,
new TreeSet<>(Sets.difference(currentPosExamples, uncoveredPosExamples)), uncoveredPosExamples,
coveredNegExamples, new TreeSet<>(Sets.difference(currentNegExamples, coveredNegExamples)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -712,11 +712,7 @@ private static int buildGraph(Integer parentId, DirectedGraph<Vertex, Edge> grap

Edge edge = new Edge(Long.valueOf(parentId + "0" + childId), edgeLabel);
graph.addEdge(parent, childVertex, edge);
System.err.println(edgeLabel);
System.err.println(graph.getEdgeSource(edge).getId());
System.err.println(graph.getEdgeTarget(edge).getId());
System.err.println(childId + "::" + childLabel);


childId = buildGraph(childId, graph, child, context);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public static CBDStructureTree fromTreeString(String treeString) {
}

private static int parseString(String input, CBDStructureTree parent) {
System.out.println(input);
StringBuilder currentString = new StringBuilder();
int index = 0;
CBDStructureTree child = null;
Expand Down
Loading

0 comments on commit 40298b6

Please sign in to comment.