We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 005d838 commit b26a1a0Copy full SHA for b26a1a0
1 file changed
examples/pbe/evaluate.py
@@ -296,9 +296,15 @@ def enumerative_search(
296
start = len(trace)
297
pbar = tqdm.tqdm(total=len(pcfgs) - start, desc="Tasks", smoothing=0)
298
i = 0
299
+ solved = 0
300
+ total = 0
301
for task, pcfg in zip(dataset.tasks[start:], pcfgs[start:]):
302
+ total += 1
303
try:
- trace.append(method(evaluator, task, pcfg, custom_enumerate))
304
+ out = method(evaluator, task, pcfg, custom_enumerate)
305
+ trace.append(out)
306
+ if out[0]:
307
+ solved += 1
308
except KeyboardInterrupt:
309
break
310
pbar.update(1)
@@ -308,7 +314,8 @@ def enumerative_search(
314
if i % 10 == 0:
315
pbar.set_postfix_str("Saving...")
316
save(trace)
311
- pbar.set_postfix_str("")
317
+ pbar.set_postfix_str(f"Solved {solved}/{total}")
318
+
312
319
pbar.close()
313
320
321
0 commit comments