Example
Table of contents
Constructors
Methods
Constructors
constructor
• new ScoreLogger(predMeta
, evalLogger
): ScoreLogger
Parameters
Name | Type |
---|---|
predMeta | PredictAndScoreCallMetadata |
evalLogger | EvaluationLogger |
Returns
ScoreLogger
Defined in
evaluationLogger.ts:317Methods
finish
▸ finish():Promise
<void
>
Finish the scoring process for the prediction.
Finalizes the predict_and_score call with accumulated scores.
Updates incremental aggregates and frees memory.
Returns
Promise
<void
>
Defined in
evaluationLogger.ts:410logScore
▸ logScore(scorerName
, score
): Promise
<void
>
Log a score for this prediction.
Creates a scorer call as a child of predict_and_score.
Parameters
Name | Type | Description |
---|---|---|
scorerName | string | Name of the scorer (e.g., “accuracy”, “f1_score”) |
score | any | The score value |
Returns
Promise
<void
>