Skip to content

Commit

Permalink
update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
crismunoz committed Jun 14, 2024
1 parent d760234 commit 68d9c97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ dependencies = [
"lime>=0.2.0.1",
"shap>=0.42.1",
"ipykernel>=6.25.2",
"ruff"
]
paths = ["./src"]

Expand Down
5 changes: 3 additions & 2 deletions src/holisticai/pipeline/handlers/_utransformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ def bias_mitigators_validation(self, steps):
# Validate if postprocessor bias mitigators are defined after classifier
if num_post_mitigators > 0:
post_classifier_step_names, _ = zip(*mitigator_groups_by_name[BIAS_TAGS.POST])
assert all(name.startswith(BIAS_TAGS.POST) for name in post_classifier_step_names), f"Only bias mitigators postprocessor are supported, \
utransformer postprocessors founded: {post_classifier_step_names}"
assert all(
name.startswith(BIAS_TAGS.POST) for name in post_classifier_step_names
), f"Only bias mitigators postprocessor are supported, utransformer postprocessors founded: {post_classifier_step_names}"

# Validate that exists only one bias mitigator postprocessor
# TODO: Evaluate in other cases.
Expand Down
1 change: 1 addition & 0 deletions src/holisticai/plots/bias/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The :mod:`holisticai.plots.bias` module includes bias plotters.
"""

# Classification Plots
# Exploratory plots
# Multiclass Plots
Expand Down

0 comments on commit 68d9c97

Please sign in to comment.