Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: Illia-Kryvoviaz <illiakryvoviaz@gmail.com>
  • Loading branch information
Illia-Kryvoviaz committed Mar 24, 2023
1 parent 826bd1f commit 7271964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 1 addition & 5 deletions examples/demo_ot_detector.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,7 @@
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"sys.path.append(r'D:\\work\\AIF360\\aif360\\detectors')\n",
"from ot_detector import ot_bias_scan\n",
"\n",
"# from aif360.detectors.ot_detector import ot_detector\n",
"from aif360.detectors.ot_detector import ot_bias_scan\n",
"from aif360.algorithms.preprocessing.optim_preproc_helpers.data_preproc_functions import load_preproc_data_compas\n",
"\n",
"import numpy as np\n",
Expand Down
5 changes: 1 addition & 4 deletions tests/test_ot_detector.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import numpy as np
import pandas as pd

import sys
sys.path.append(r'D:\work\AIF360\aif360\detectors')
from ot_detector import ot_bias_scan
# from aif360.detectors.ot_detector import ot_detector
from aif360.detectors.ot_detector import ot_bias_scan

def check(initial, final, expected_value, mode="ordinal", favorable_value=None, overpredicted=True):
assert abs(sum(initial[:]) - sum(final[:])) <= 0.0001, \
Expand Down

0 comments on commit 7271964

Please sign in to comment.