Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview
On this page

EvaluationFactory

Creates `Evaluation` instances for running batch scoring.

Access this via client.evaluation – you don’t instantiate it directly.

evaluation = client.evaluation.create()
results = evaluation.run(
    examples=examples,
    scorers=["faithfulness"],
    eval_run_name="nightly",
)

__init__()

def __init__(client, project_id, project_name):

Parameters

PropType
clientJudgmentSyncClient
TypeJudgmentSyncClient
project_idOptional[str]
TypeOptional[str]
project_namestr
Typestr

create()

Create a new Evaluation bound to the current project.

def create() -> Evaluation:

Returns

Evaluation - An Evaluation instance ready for .run().

Was this page helpful?