Skip to content

Commit

Permalink
Check whether original graph has edge between separated fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
jni committed Jul 8, 2016
1 parent 26ae97c commit 85f92cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gala/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,10 @@ def learn_separation(self, fragment, separate_from):
if self.rag.has_edge(s0, s1):
self.features.append(self.feature_manager(self.rag, s0, s1))
self.targets.append(SEPAR_LABEL)
self.features.append(self.feature_manager(self.original_rag,
f0, f1))
self.targets.append(SEPAR_LABEL)
if self.original_rag.has_edge(f0, f1):
self.features.append(self.feature_manager(self.original_rag,
f0, f1))
self.targets.append(SEPAR_LABEL)
self.separate.append((f0, f1))
self.recently_solved = False

Expand Down

0 comments on commit 85f92cd

Please sign in to comment.