Example
Table of contents
Constructors
Methods
Constructors
constructor
• new EvaluationLogger(options
): EvaluationLogger
Parameters
Name | Type |
---|---|
options | EvaluationLoggerOptions |
Returns
EvaluationLogger
Defined in
evaluationLogger.ts:502Methods
logPrediction
▸ logPrediction(inputs
, output
): Promise
<ScoreLogger
>
Log a prediction with its input and output.
Creates a predict_and_score call (with child predict call).
Returns a ScoreLogger for adding scores.
Parameters
Name | Type |
---|---|
inputs | Record <string , any > |
output | any |
Returns
Promise
<ScoreLogger
>
Defined in
evaluationLogger.ts:579logSummary
▸ logSummary(summary?
): Promise
<void
>
Log a summary and finalize the evaluation.
Creates a summarize call and finishes the evaluate call.
Parameters
Name | Type |
---|---|
summary? | Record <string , any > |
Returns
Promise
<void
>