Skip to content

Commit 377e856

Browse files
committed
wip
1 parent e96afdc commit 377e856

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

popper/combine.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ def find_combination(self, timeout):
184184
weights.append(NEG_EXAMPLE_WEIGHT)
185185

186186
# PRUNE INCONSISTENT
187-
for prog_hash in self.inconsistent:
188-
prog = self.prog_lookup[prog_hash]
187+
for prog in self.inconsistent:
189188
should_add = True
190189
ids = []
191190
for rule in prog:

popper/loop.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def run(self, bkcons):
402402
# if inconsistent, prune generalisations
403403
add_gen = True
404404
if is_recursive:
405-
combiner.add_inconsistent(hash(prog))
405+
combiner.add_inconsistent(prog)
406406
cons_ = frozenset(self.explain_inconsistent(prog))
407407
new_cons.extend(cons_)
408408
pruned_sub_inconsistent = len(cons_) > 0
@@ -843,10 +843,8 @@ def filter_combine_programs(self, combiner, to_combine):
843843
for prog_hash in to_delete:
844844
# AC: DELETE FROM SUCCESS_SETS_NOISE
845845
if prog_hash in combiner.saved_progs:
846-
print('del1', prog_hash)
847846
combiner.saved_progs.remove(prog_hash)
848847
else:
849-
print('del2', prog_hash)
850848
to_combine.remove(prog_hash)
851849

852850
def subsumed_by_two_new(self, pos_covered, prog_size):

0 commit comments

Comments
 (0)