optimize
function optimize<IN, OUT>(
program: Readonly<AxProgrammable<IN, OUT>>,
examples: readonly AxTypedExample<IN>[],
metricFn:
| AxMetricFn
| AxMultiMetricFn,
options: Readonly<AxOptimizeOptions>): Promise<AxParetoResult<OUT>>;Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/optimize.ts#L29
Type Parameters
| Type Parameter |
|---|
IN |
OUT extends AxGenOut |
Parameters
| Parameter | Type |
|---|---|
program | Readonly<AxProgrammable<IN, OUT>> |
examples | readonly AxTypedExample<IN>[] |
metricFn | | AxMetricFn | AxMultiMetricFn |
options | Readonly<AxOptimizeOptions> |
Returns
Promise<AxParetoResult<OUT>>