Skip to content

Commit

Permalink
Python 3.11 support #227. Warning hunt (WIP).
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinecarme committed Mar 9, 2023
1 parent 94576fe commit b9d6a9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyaf/TS/Perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ def compute_LnQ(self, signal , estimator):
return self.mLnQ

def compute_KS_Kendall_MWU_AUC(self, signal , estimator):
min_signal , max_signal = signal.min(), signal.max()
self.mKS, self.mMWU, self.mAUC = 0.0, 0.0, 0.0
if((max_signal - min_signal) < 0.001):
return
from scipy.stats import mannwhitneyu, kendalltau, kstest
lKSTest = kstest(signal, estimator, method='asymp')
self.mKS = lKSTest.statistic
Expand Down

0 comments on commit b9d6a9a

Please sign in to comment.