Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
added prefix removal to make sure parity metrics are interpreted corr…
Browse files Browse the repository at this point in the history
…ectly
  • Loading branch information
IanAtCredo committed Oct 27, 2022
1 parent e1d70e0 commit 27e077c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions credoai/lens/pipeline_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def process_evidence_requirements(evidence_requirements: List[EvidenceRequiremen


def extract_metrics(labels):
"""Extract metrics from a single evidence requirrment"""
"""Extract metrics from a single evidence requirement"""
metrics = set()
if "metric_type" in labels:
metrics.add(labels["metric_type"])
metrics.add(labels["metric_type"].removesuffix('_parity'))
elif "metric_types" in labels:
metrics = metrics.union(labels["metric_types"])
return metrics
Expand Down

0 comments on commit 27e077c

Please sign in to comment.