Example
Constructors
Constructor
new ScoreLogger(Defined in: src/evaluationLogger.ts:338evalLogger):ScoreLogger
Parameters
evalLogger
EvaluationLogger
Returns
ScoreLogger
Accessors
isFinishCalled
Get Signature
get isFinishCalled(): boolean
Defined in: src/evaluationLogger.ts:368
Check if finish() has been called.
Used by EvaluationLogger to detect unfinished predictions.
Returns
boolean
Methods
finish()
finish():Defined in: src/evaluationLogger.ts:470 Finish the scoring process for the prediction. Finalizes the predict_and_score call with accumulated scores. Updates incremental aggregates and frees memory.Promise<void>
Returns
Promise<void>
logScore()
logScore(Defined in: src/evaluationLogger.ts:379 Log a score for this prediction. Creates a scorer call as a child of predict_and_score.scorerName,score):Promise<void>
Parameters
scorerName
string
Name of the scorer (e.g., “accuracy”, “f1_score”)
score
any
The score value
Returns
Promise<void>