AxOptimizedProgram
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/optimizer.ts#L778
Type Parameters
Type Parameter | Default type |
---|---|
OUT | any |
Properties
Property | Type |
---|---|
bestScore | number |
configurationHistory? | Record <string , unknown >[] |
converged | boolean |
demos? | AxProgramDemos <any , OUT >[] |
examples? | AxExample [] |
instruction? | string |
modelConfig? | object |
modelConfig.frequencyPenalty? | number |
modelConfig.maxTokens? | number |
modelConfig.presencePenalty? | number |
modelConfig.stop? | string | string [] |
modelConfig.temperature? | number |
modelConfig.topK? | number |
modelConfig.topP? | number |
optimizationTime | number |
optimizerType | string |
scoreHistory? | number [] |
stats | AxOptimizationStats |
totalRounds | number |
Methods
applyTo()
applyTo<IN, T>(program: AxGen<IN, T>): void;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/optimizer.ts#L811
Type Parameters
Type Parameter |
---|
IN |
T extends AxGenOut |
Parameters
Parameter | Type |
---|---|
program | AxGen <IN , T > |
Returns
void