Internal operations and program data for one search strategy.
Shared candidate, limit, accounting, random, and result state belongs to
Tune.Search.Study.
Summary
Types
Functions
@spec best(t()) :: {:ok, Tune.Program.t(), t()} | {:error, Exception.t(), t()}
@spec budget(t()) :: non_neg_integer() | nil
@spec consider(t(), Tune.Program.t(), Tune.Evaluation.t() | nil, map()) :: {String.t(), t()}
@spec evaluate(t(), Tune.Program.t(), [Tune.Case.t()]) :: {Tune.Evaluation.t(), t()}
@spec evaluate_validation(t(), Tune.Program.t()) :: {Tune.Evaluation.t(), t()}
@spec incumbent(t()) :: Tune.Candidate.t() | nil
@spec limit_error(atom()) :: Exception.t()
@spec max_model_calls(t()) :: non_neg_integer() | nil
@spec result(t(), term(), map(), keyword()) :: Tune.Result.t()
@spec run(t(), Tune.Program.t(), map(), atom()) :: {{:ok, Tune.Prediction.t()} | {:error, term()}, t()}
@spec sample(t(), list(), non_neg_integer()) :: {list(), t()}
@spec score(t(), Tune.Case.t(), Tune.Prediction.t()) :: {{:ok, %{score: number(), feedback: String.t() | nil}} | {:error, term()}, t()}
@spec uniform(t(), pos_integer()) :: {non_neg_integer(), t()}