Skip to content

Commit

Permalink
correct Linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriJasnovidov committed Jan 8, 2024
1 parent 9acf4f6 commit eae17b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tutorials/fairness_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@


def print_results(res):
"""This function prints results of fairness improvement algorithm."""

accuracy_absolute_loss = res["accuracy_of_initial_classifier"] - res["accuracy_of_fair_classifier"]
accuracy_percentage_loss = accuracy_absolute_loss / res["accuracy_of_initial_classifier"] * 100
fairness_absolute_improvement = res["fairness_of_initial_classifier_diff"] - res["fairness_of_fair_classifier_diff"]
Expand All @@ -32,6 +34,8 @@ def print_results(res):


def run(name, init_cl):
"""Run experiment."""

initial_classifier = init_cl
if name == "LOAN":
loan = pd.read_csv("loan_cleaned.csv")
Expand Down

0 comments on commit eae17b8

Please sign in to comment.