Skip to content

Commit 18306f7

Browse files
Add Anderson-Darling test integration test
1 parent 35b226f commit 18306f7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

frouros/detectors/data_drift/batch/statistical_test/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
"""Data drift batch statistical test detection methods' init."""
22

3+
from .anderson_darling import AndersonDarlingTest
34
from .chisquare import ChiSquareTest
45
from .cvm import CVMTest
56
from .ks import KSTest
67
from .mann_whitney_u import MannWhitneyUTest
78
from .welch_t_test import WelchTTest
89

910
__all__ = [
11+
"AndersonDarlingTest",
1012
"ChiSquareTest",
1113
"CVMTest",
1214
"KSTest",

frouros/tests/integration/test_data_drift.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
MMD,
1717
)
1818
from frouros.detectors.data_drift.batch import (
19+
AndersonDarlingTest,
1920
ChiSquareTest,
2021
CVMTest,
2122
KSTest,
@@ -160,6 +161,7 @@ def test_batch_distance_bins_based_univariate_same_distribution(
160161
@pytest.mark.parametrize(
161162
"detector, expected_statistic, expected_p_value",
162163
[
164+
(AndersonDarlingTest(), 23171.19994366, 0.001),
163165
(CVMTest(), 3776.09848103, 5.38105056e-07),
164166
(KSTest(), 0.99576271, 0.0),
165167
(MannWhitneyUTest(), 6912.0, 0.0),

0 commit comments

Comments
 (0)