@@ -73,14 +73,14 @@ def evaluation_test( # noqa: C901
7373 Here are some key concepts to understand the terminology in EP:
7474
7575 - "invocation" is a single execution of a test function. An invocation can
76- generate 1 or more cohorts . Grouping by invocation might be useful to
76+ generate 1 or more experiments . Grouping by invocation might be useful to
7777 aggregate eval scores across multiple invocations when you want to aggregate
7878 scores across multiple datasets.
79- - "cohort " is a group of runs with for a combination of parameters. A single
80- cohort will have multiple runs if num_runs > 1.
79+ - "experiment " is a group of runs with for a combination of parameters. A single
80+ experiment will have multiple runs if num_runs > 1.
8181 1. If your evaluation_test has combinations of parameters, it will generate
82- multiple cohorts per combination of parameters.
83- 2. A new execution of a test function will generate a new cohort .
82+ multiple experiments per combination of parameters.
83+ 2. A new execution of a test function will generate a new experiment .
8484 - "run" is a group of rollouts. For multiple num_runs > 1, there will be
8585 multiple "run_id"s.
8686 - "rollout" is the execution/process that produces a "trajectory". You
@@ -98,7 +98,7 @@ def evaluation_test( # noqa: C901
9898 decorated test. It simply produces a score from 0 to 1 and attached it
9999 to the row as the "evaluation_result" field.
100100
101- "invocation", "cohort ", "run", "rollout", and "row" each have a unique ID
101+ "invocation", "experiment ", "run", "rollout", and "row" each have a unique ID
102102 which can be used to easily group and identify your dataset by.
103103
104104 Args:
@@ -302,7 +302,7 @@ def wrapper_body(**kwargs):
302302 eval_metadata = None
303303 all_results : List [List [EvaluationRow ]] = [[] for _ in range (num_runs )]
304304
305- cohort_id = generate_id ()
305+ experiment_id = generate_id ()
306306
307307 def _log_eval_error (
308308 status : Literal ["finished" , "error" ], rows : Optional [List [EvaluationRow ]] | None , passed : bool
@@ -383,7 +383,7 @@ def _log_eval_error(
383383 row .input_metadata .session_data ["mode" ] = mode
384384 # Initialize eval_metadata for each row
385385 row .eval_metadata = eval_metadata
386- row .cohort_id = cohort_id
386+ row .experiment_id = experiment_id
387387 row .invocation_id = invocation_id
388388
389389 # has to be done in the pytest main process since it's
0 commit comments