Runs a typed predictor or composed program on one input.
Use run/3 to execute a program in an application, including a program
loaded from an artifact.
Summary
Functions
Runs a program with a required :model configuration and returns a
Tune.Prediction with its output, steps, and call counts.
Functions
@spec run(Tune.Program.t(), map(), keyword()) :: {:ok, Tune.Prediction.t()} | {:error, Exception.t()}
Runs a program with a required :model configuration and returns a
Tune.Prediction with its output, steps, and call counts.
Pass :max_model_calls, :max_steps, or :timeout to bound execution.
Timeout is in milliseconds and defaults to 60,000. Use :infinity for
no timeout. If a program fails after it starts, the error retains the
partial prediction.