An internal program-search algorithm.
An optimizer validates its own configuration, declares which datasets,
model roles, and limits it needs, and compiles a new program from a
normalized Tune.Search.Program.Context. It changes task parameters
only. Model configurations, the adapter, and dataset roles are fixed by the
context for the whole run.
Summary
Callbacks
Builds a new program. Returns the program and the final context, or an error and the final context. The context carries candidates, accounting, and the stop reason used for the report.
Validates and normalizes optimizer configuration.
Declares the datasets, roles, and limits the configured algorithm needs.
Types
Callbacks
@callback compile(config :: term(), Tune.Program.t(), Tune.Search.Program.Context.t()) :: {:ok, Tune.Program.t(), Tune.Search.Program.Context.t()} | {:error, term(), Tune.Search.Program.Context.t()}
Builds a new program. Returns the program and the final context, or an error and the final context. The context carries candidates, accounting, and the stop reason used for the report.
@callback init(keyword()) :: {:ok, term()} | {:error, Exception.t()}
Validates and normalizes optimizer configuration.
@callback requirements(config :: term()) :: requirements()
Declares the datasets, roles, and limits the configured algorithm needs.