TimeGoal

TimeGoal

is an option for various functions that specifies how long to spend doing a particular operation.

Details

  • TimeGoalt specifies that around t seconds of CPU time should be spent doing a particular operation.
  • TimeGoalQuantity[n,"unit"] specifies the time goal using a quantity. Possible forms for "unit" include "Seconds", "Minutes", "Hours".
  • Since different computer systems run at different speeds, the same setting for TimeGoal can lead to different results on different systems.

Examples

Basic Examples  (2)

Train a classifier while specifying a total training time of 5 seconds:

In[1]:=
Click for copyable input
Out[1]=

Train a predictor while specifying a total training time of 3 seconds:

In[1]:=
Click for copyable input
Out[1]=

See Also

TimeConstraint  PerformanceGoal  AccuracyGoal  PrecisionGoal  Classify  Predict

Introduced in 2017
(11.2)