Class: StringEvaluator
evaluation.StringEvaluator
Implements
Constructors
constructor
• new StringEvaluator(params
): StringEvaluator
Parameters
Name | Type |
---|---|
params | StringEvaluatorParams |
Returns
Defined in
evaluation/string_evaluator.ts:37
Properties
gradingFunction
• Protected
gradingFunction: (params
: GradingFunctionParams
) => Promise
<GradingFunctionResult
>
Type declaration
▸ (params
): Promise
<GradingFunctionResult
>
Parameters
Name | Type |
---|---|
params | GradingFunctionParams |
Returns
Promise
<GradingFunctionResult
>
Defined in
evaluation/string_evaluator.ts:33
inputKey
• Protected
inputKey: string
Defined in
evaluation/string_evaluator.ts:30
predictionKey
• Protected
predictionKey: string
Defined in
evaluation/string_evaluator.ts:31
answerKey
• Protected
Optional
answerKey: string
Defined in
evaluation/string_evaluator.ts:32
evaluationName
• Protected
Optional
evaluationName: string
Defined in
evaluation/string_evaluator.ts:29
Methods
evaluateRun
▸ evaluateRun(run
, example?
): Promise
<EvaluationResult
>
Parameters
Name | Type |
---|---|
run | Run |
example? | Example |
Returns
Promise
<EvaluationResult
>