Skip to content

Commit 2f7a26e

Browse files
committed
pass empty results
1 parent ed8fd13 commit 2f7a26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspy/teleprompt/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def eval_candidate_program(batch_size, trainset, candidate_program, evaluate, rn
6060
except Exception:
6161
logger.error("An exception occurred during evaluation", exc_info=True)
6262
# TODO: Handle this better, as -ve scores are possible
63-
return dspy.Prediction(score=0.0, outputs=[])
63+
return dspy.Prediction(score=0.0, results=[])
6464

6565
def eval_candidate_program_with_pruning(
6666
trial, trial_logs, trainset, candidate_program, evaluate, trial_num, batch_size=100,

0 commit comments

Comments
 (0)