updated range for bool transform get_explanation_values
Browse files
utils.py
CHANGED
@@ -62,7 +62,7 @@ def get_explainability_values(pos_indices, datapoint):
|
|
62 |
transformed_data = transformation(input=rounded_data, categories=CATEGORIES)
|
63 |
vals = []
|
64 |
for idx in pos_indices:
|
65 |
-
if idx in range(
|
66 |
val = str(bool(transformed_data[idx])).capitalize()
|
67 |
else:
|
68 |
val = transformed_data[idx]
|
|
|
62 |
transformed_data = transformation(input=rounded_data, categories=CATEGORIES)
|
63 |
vals = []
|
64 |
for idx in pos_indices:
|
65 |
+
if idx in range(6,11) or idx in range(13,18):
|
66 |
val = str(bool(transformed_data[idx])).capitalize()
|
67 |
else:
|
68 |
val = transformed_data[idx]
|