Skip to main content
Defined in: src/evaluationLogger.ts:330 ScoreLogger manages scoring for a single prediction. Returned from EvaluationLogger.logPrediction().

Example

Constructors

Constructor

new ScoreLogger(evalLogger): ScoreLogger
Defined in: src/evaluationLogger.ts:338

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(): Promise<void>
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.

Returns

Promise<void>

logScore()

logScore(scorerName, score): Promise<void>
Defined in: src/evaluationLogger.ts:379 Log a score for this prediction. Creates a scorer call as a child of predict_and_score.

Parameters

scorerName
string Name of the scorer (e.g., “accuracy”, “f1_score”)
score
any The score value

Returns

Promise<void>