Skip to content

Commit 35d0e5d

Browse files
committed
use auto_goal in runner.simple
1 parent 3395635 commit 35d0e5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adaptive/runner.py

+1
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ def simple(learner, goal):
738738
The end condition for the calculation. This function must take the
739739
learner as its sole argument, and return True if we should stop.
740740
"""
741+
goal = auto_goal(goal)
741742
while not goal(learner):
742743
xs, _ = learner.ask(1)
743744
for x in xs:

0 commit comments

Comments
 (0)