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


  • 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.


Basic Examples  (2)

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

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

Introduced in 2017