Skip to content

Commit c96e5a4

Browse files
committed
complete doc-string of auto_goal
1 parent 761afa8 commit c96e5a4

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

adaptive/runner.py

+16-11
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ class BaseRunner(metaclass=abc.ABCMeta):
9191
duration_goal : timedelta or number, optional
9292
Convenience argument, use instead of ``goal``. The end condition for the
9393
calculation. Stop when the current time is larger or equal than
94-
``start_time + duration_goal``.
94+
``start_time + duration_goal``. ``duration_goal`` can be a number
95+
indicating the number of seconds
9596
executor : `concurrent.futures.Executor`, `distributed.Client`,\
9697
`mpi4py.futures.MPIPoolExecutor`, `ipyparallel.Client` or\
9798
`loky.get_reusable_executor`, optional
@@ -510,7 +511,8 @@ class AsyncRunner(BaseRunner):
510511
duration_goal : timedelta or number, optional
511512
Convenience argument, use instead of ``goal``. The end condition for the
512513
calculation. Stop when the current time is larger or equal than
513-
``start_time + duration_goal``.
514+
``start_time + duration_goal``. ``duration_goal`` can be a number
515+
indicating the number of seconds.
514516
executor : `concurrent.futures.Executor`, `distributed.Client`,\
515517
`mpi4py.futures.MPIPoolExecutor`, `ipyparallel.Client` or\
516518
`loky.get_reusable_executor`, optional
@@ -834,7 +836,8 @@ def simple(
834836
duration_goal : timedelta or number, optional
835837
Convenience argument, use instead of ``goal``. The end condition for the
836838
calculation. Stop when the current time is larger or equal than
837-
``start_time + duration_goal``.
839+
``start_time + duration_goal``. ``duration_goal`` can be a number
840+
indicating the number of seconds.
838841
"""
839842
goal = _goal(
840843
learner,
@@ -1000,14 +1003,16 @@ def auto_goal(
10001003
10011004
Parameters
10021005
----------
1003-
loss
1004-
TODO
1005-
npoints
1006-
TODO
1007-
end_time
1008-
TODO
1009-
duration
1010-
TODO
1006+
loss : float, optional
1007+
Stop when the loss is smaller than this value.
1008+
npoints : int, optional
1009+
Stop when the number of points is larger or equal than this value.
1010+
end_time : datetime, optional
1011+
Stop when the current time is larger or equal than this value.
1012+
duration : timedelta or number, optional
1013+
Stop when the current time is larger or equal than
1014+
``start_time + duration``. ``duration`` can be a number
1015+
indicating the number of seconds.
10111016
learner
10121017
Learner for which to determine the goal.
10131018
allow_running_forever

0 commit comments

Comments
 (0)