Example
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new ScoreLogger(evalLogger): ScoreLogger
Parameters
| Name | Type |
|---|---|
evalLogger | EvaluationLogger |
Returns
ScoreLogger
Defined in
evaluationLogger.ts:319Accessors
isFinishCalled
•get isFinishCalled(): boolean
Check if finish() has been called.
Used by EvaluationLogger to detect unfinished predictions.
Returns
boolean
Defined in
evaluationLogger.ts:349Methods
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:451logScore
▸ 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>