Skip to content

Commit

Permalink
Fix error in metric_json_explainer.consistency() (Trusted-AI#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmansc authored Sep 16, 2022
1 parent a249ce1 commit 41c19cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aif360/explainers/metric_json_explainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def consistency(self, n_neighbors=5):
response = OrderedDict((
("metric", "Consistency"),
("message", outcome),
("description", "Individual fairness metric from Zemel, Rich, et al. \"Learning fair representations.\", ICML 2013. "),
("Measures how similar the labels are for similar instances."),
("description", "Individual fairness metric from Zemel, Rich, et al. \"Learning fair representations.\", ICML 2013. "
"Measures how similar the labels are for similar instances."),
("ideal", "The ideal value of this metric is 1.0")
))
return json.dumps(response)
Expand Down

0 comments on commit 41c19cc

Please sign in to comment.