@@ -91,7 +91,8 @@ class BaseRunner(metaclass=abc.ABCMeta):
91
91
duration_goal : timedelta or number, optional
92
92
Convenience argument, use instead of ``goal``. The end condition for the
93
93
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
95
96
executor : `concurrent.futures.Executor`, `distributed.Client`,\
96
97
`mpi4py.futures.MPIPoolExecutor`, `ipyparallel.Client` or\
97
98
`loky.get_reusable_executor`, optional
@@ -510,7 +511,8 @@ class AsyncRunner(BaseRunner):
510
511
duration_goal : timedelta or number, optional
511
512
Convenience argument, use instead of ``goal``. The end condition for the
512
513
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.
514
516
executor : `concurrent.futures.Executor`, `distributed.Client`,\
515
517
`mpi4py.futures.MPIPoolExecutor`, `ipyparallel.Client` or\
516
518
`loky.get_reusable_executor`, optional
@@ -834,7 +836,8 @@ def simple(
834
836
duration_goal : timedelta or number, optional
835
837
Convenience argument, use instead of ``goal``. The end condition for the
836
838
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.
838
841
"""
839
842
goal = _goal (
840
843
learner ,
@@ -1000,14 +1003,16 @@ def auto_goal(
1000
1003
1001
1004
Parameters
1002
1005
----------
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.
1011
1016
learner
1012
1017
Learner for which to determine the goal.
1013
1018
allow_running_forever
0 commit comments