Skip to content

Commit

Permalink
Update test_psi_detector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
951378644 committed Nov 22, 2023
1 parent 5d9f06f commit 9e91dcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/menelaus/data_drift/test_psi_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@ def test_psi_compute_PSI():
test = np.random.randint(0,100,100)
det.set_reference(X = ref)
det.update(X = test)
result = det.PSI_value
det = PSI()
det.set_reference(X = ref)
det.update(X = test)
assert det.PSI_value == result
assert det.PSI_value >= 0 and det.PSI_value <= 1

0 comments on commit 9e91dcc

Please sign in to comment.