You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The KSComplement may return a score of 0.0 when passed seemingly identical float values.
Steps to reproduce
fromsdmetrics.single_column.statistical.kscomplementimportKSComplementimportpandasaspdvals1=pd.Series([.2-.1])
vals2=pd.Series([.3-.2])
print(KSComplement.compute(vals1, vals2)) # This prints 0.0
Expectation
The KSComplement is expected to return 1.0 for such cases.
Additional context
This seems to be the default behavior of scipy's ks_2samp, which KSComplement uses to compute the KS test statistic.