Skip to content

Instantly share code, notes, and snippets.

@joshreini1
Created March 1, 2023 15:51
Show Gist options
  • Save joshreini1/a6ab1e8a0cf99d737abbb00299934b21 to your computer and use it in GitHub Desktop.
Save joshreini1/a6ab1e8a0cf99d737abbb00299934b21 to your computer and use it in GitHub Desktop.
tru.tester.add_fairness_test(test_name = "Impact Ratio Test",
data_split_name_regex = ".",
all_data_collections=True,
all_protected_segments=True,
metric = "DISPARATE_IMPACT_RATIO",
fail_if_outside = [0.8, 1.25])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment