Skip to content

Commit 3ee71c7

Browse files
committed
fix: flake8 format enforcement
fixed long lines and trailing whitespace
1 parent 026c9ac commit 3ee71c7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/sagemaker/clarify.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ def __init__(
8888
Args:
8989
label_values_or_threshold (Any): List of label values or threshold to indicate positive
9090
outcome used for bias metrics.
91-
facet_name (Any): String or List of strings of sensitive attribute(s) in the input data
91+
facet_name (Any): String or List of strings of sensitive attribute(s) in the input data
9292
for which we like to compare metrics.
9393
facet_values_or_threshold (list): Optional list of values to form a sensitive group or
9494
threshold for a numeric facet column that defines the lower bound of a sensitive
9595
group. Defaults to considering each possible value as sensitive group and
96-
computing metrics vs all the other examples.
97-
If facet_name is a list, this needs to be None or a List of lists or None, with the same length.
96+
computing metrics vs all the other examples.
97+
If facet_name is a list, this needs to be None or a List consisting of lists or None
98+
with the same length as facet_name list.
9899
group_name (str): Optional column name or index to indicate a group column to be used
99100
for the bias metric 'Conditional Demographic Disparity in Labels - CDDL' or
100101
'Conditional Demographic Disparity in Predicted Labels - CDDPL'.
@@ -107,7 +108,8 @@ def __init__(
107108
facet_list = []
108109
for i, single_facet_name in enumerate(facet_name):
109110
facet = {"name_or_index": single_facet_name}
110-
if facet_values_or_threshold is not None: _set(facet_values_or_threshold[i], "value_or_threshold", facet)
111+
if facet_values_or_threshold is not None:
112+
_set(facet_values_or_threshold[i], "value_or_threshold", facet)
111113
facet_list.append(facet)
112114
else:
113115
raise ValueError("Wrong combination of argument values passed")

0 commit comments

Comments
 (0)