Skip to content

Commit

Permalink
Include xpia in handled_metrics for evaluation aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
diondrapeck committed Sep 11, 2024
1 parent 4e05d17 commit 8629de8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class EvaluationMetrics:
SELF_HARM = "self_harm"
SEXUAL = "sexual"
PROTECTED_MATERIAL = "protected_material"
XPIA = "xpia"


class _InternalEvaluationMetrics:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def _aggregate_label_defect_metrics(df: pd.DataFrame) -> Tuple[List[str], Dict[s
handled_metrics = [
EvaluationMetrics.PROTECTED_MATERIAL,
_InternalEvaluationMetrics.ECI,
EvaluationMetrics.XPIA,
]
label_cols = []
for col in df.columns:
Expand Down

0 comments on commit 8629de8

Please sign in to comment.