AxOptimizedProgramImpl
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/optimizer.ts#L815
Type Parameters
Type Parameter | Default type |
---|---|
OUT | any |
Implements
AxOptimizedProgram
<OUT
>
Constructors
Constructor
new AxOptimizedProgramImpl<OUT>(config: object): AxOptimizedProgramImpl<OUT>;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/optimizer.ts#L840
Parameters
Parameter | Type |
---|---|
config | { bestScore : number ; configurationHistory? : Record <string , unknown >[]; converged : boolean ; demos? : AxProgramDemos <any , OUT >[]; examples? : AxExample []; instruction? : string ; modelConfig? : { [key : string ]: unknown ; frequencyPenalty? : number ; maxTokens? : number ; presencePenalty? : number ; stop? : string | string []; temperature? : number ; topK? : number ; topP? : number ; }; optimizationTime : number ; optimizerType : string ; scoreHistory? : number []; stats : AxOptimizationStats ; totalRounds : number ; } |
config.bestScore | number |
config.configurationHistory? | Record <string , unknown >[] |
config.converged | boolean |
config.demos? | AxProgramDemos <any , OUT >[] |
config.examples? | AxExample [] |
config.instruction? | string |
config.modelConfig? | { [key : string ]: unknown ; frequencyPenalty? : number ; maxTokens? : number ; presencePenalty? : number ; stop? : string | string []; temperature? : number ; topK? : number ; topP? : number ; } |
config.modelConfig.frequencyPenalty? | number |
config.modelConfig.maxTokens? | number |
config.modelConfig.presencePenalty? | number |
config.modelConfig.stop? | string | string [] |
config.modelConfig.temperature? | number |
config.modelConfig.topK? | number |
config.modelConfig.topP? | number |
config.optimizationTime | number |
config.optimizerType | string |
config.scoreHistory? | number [] |
config.stats | AxOptimizationStats |
config.totalRounds | number |
Returns
AxOptimizedProgramImpl
<OUT
>
Properties
Property | Modifier | Type |
---|---|---|
bestScore | readonly | number |
configurationHistory? | readonly | Record <string , unknown >[] |
converged | readonly | boolean |
demos? | readonly | AxProgramDemos <any , OUT >[] |
examples? | readonly | AxExample [] |
instruction? | readonly | string |
modelConfig? | readonly | object |
modelConfig.frequencyPenalty? | public | number |
modelConfig.maxTokens? | public | number |
modelConfig.presencePenalty? | public | number |
modelConfig.stop? | public | string | string [] |
modelConfig.temperature? | public | number |
modelConfig.topK? | public | number |
modelConfig.topP? | public | number |
optimizationTime | readonly | number |
optimizerType | readonly | string |
scoreHistory? | readonly | number [] |
stats | readonly | AxOptimizationStats |
totalRounds | readonly | 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#L868
Type Parameters
Type Parameter |
---|
IN |
T extends AxGenOut |
Parameters
Parameter | Type |
---|---|
program | AxGen <IN , T > |
Returns
void