Example
Constructor
new ScoreLogger(evalLogger):ScoreLogger
Parameters
EvaluationLogger
required
See
EvaluationLogger.Returns
ScoreLogger
Accessors
isFinishCalled
Get Signature
get isFinishCalled(): boolean
Check if finish() has been called.
Used by EvaluationLogger to detect unfinished predictions.
Returns
boolean
Methods
finish()
finish():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(Log a score for this prediction. Creates a scorer call as a child of predict_and_score.scorerName,score):Promise<void>
Parameters
string
required
Name of the scorer (e.g., “accuracy”, “f1_score”)
any
required
The score value
Returns
Promise<void>