File tree 2 files changed +9
-4
lines changed
vertexai/preview/evaluation
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class EvaluationRunConfig:
37
37
38
38
Attributes:
39
39
dataset: The dataset to evaluate.
40
- metrics: The list of metric names, or metric bundle names , or Metric instances to evaluate.
40
+ metrics: The list of metrics , or Metric instances to evaluate.
41
41
column_map: The dictionary of column name overrides in the dataset.
42
42
client: The evaluation service client.
43
43
evaluation_service_qps: The custom QPS limit for the evaluation service.
@@ -73,10 +73,11 @@ class EvalResult:
73
73
"""Evaluation result.
74
74
75
75
Attributes:
76
- summary_metrics: The summary evaluation metrics for an evaluation run.
77
- metrics_table: A table containing eval inputs, ground truth, and metrics per
78
- row .
76
+ summary_metrics: The summary evaluation metrics for the evaluation run.
77
+ metrics_table: A table containing evaluation dataset, and metric results.
78
+ metadata: The metadata for the evaluation run .
79
79
"""
80
80
81
81
summary_metrics : Dict [str , float ]
82
82
metrics_table : Optional ["pd.DataFrame" ] = None
83
+ metadata : Optional [Dict [str , str ]] = None
Original file line number Diff line number Diff line change @@ -298,6 +298,10 @@ def _evaluate_with_experiment(
298
298
k : ("NaN" if isinstance (v , float ) and np .isnan (v ) else v )
299
299
for k , v in eval_result .summary_metrics .items ()
300
300
}
301
+ eval_result .metadata = {
302
+ "experiment" : self .experiment ,
303
+ "experiment_run" : experiment_run_name ,
304
+ }
301
305
try :
302
306
vertexai .preview .log_metrics (eval_result .summary_metrics )
303
307
except (TypeError , exceptions .InvalidArgument ) as e :
You can’t perform that action at this time.
0 commit comments