Skip to content

Commit e7cdbcf

Browse files
author
Ashley Scillitoe
authored
Fix incorrect default alternative kwarg and docs in FET detectors (#661)
1 parent 1dfda49 commit e7cdbcf

File tree

6 files changed

+113
-70
lines changed

6 files changed

+113
-70
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## v0.10.4
4+
## [v0.10.4](https://github.com/SeldonIO/alibi-detect/tree/v0.10.4) (2022-10-21)
5+
[Full Changelog](https://github.com/SeldonIO/alibi-detect/compare/v0.10.3...v0.10.4)
6+
7+
### Fixed
8+
- Fixed an incorrect default value for the `alternative` kwarg in the `FETDrift` detector ([#661](https://github.com/SeldonIO/alibi-detect/pull/661)).
9+
310
## v0.10.3
411
## [v0.10.3](https://github.com/SeldonIO/alibi-detect/tree/v0.10.3) (2022-08-17)
512
[Full Changelog](https://github.com/SeldonIO/alibi-detect/compare/v0.10.2...v0.10.3)

alibi_detect/cd/fet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(
1414
update_x_ref: Optional[Dict[str, int]] = None,
1515
preprocess_fn: Optional[Callable] = None,
1616
correction: str = 'bonferroni',
17-
alternative: str = 'decrease',
17+
alternative: str = 'greater',
1818
n_features: Optional[int] = None,
1919
input_shape: Optional[tuple] = None,
2020
data_type: Optional[str] = None

doc/source/cd/methods/fetdrift.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"\n",
4040
"The null hypothesis is $H_0: \\widehat{OR}=1$. In other words, the proportion of 1's to 0's is unchanged between the test and reference distributions, such that the odds of 1's vs 0's is independent of whether the data is drawn from the reference or test distribution. The offline FET detector can perform one-sided or two-sided tests, with the alternative hypothesis set by the `alternative` keyword argument:\n",
4141
"\n",
42-
"- If `alternative='greater'`, the alternative hypothesis is $H_a: \\widehat{OR}>1$ i.e. proportion of 1's versus 0's has increased compared to reference distribution.\n",
42+
"- If `alternative='greater'`, the alternative hypothesis is $H_a: \\widehat{OR}>1$ i.e. proportion of 1's versus 0's has increased compared to the reference distribution.\n",
4343
"- If `alternative='less'`, the alternative hypothesis is $H_a: \\widehat{OR}<1$ i.e. the proportion of 1's versus 0's has decreased compared to the reference distribution.\n",
4444
"- If `alternative='two-sided'`, the alternative hypothesis is $H_a: \\widehat{OR} \\ne 1$ i.e. the proportion of 1's versus 0's has changed compared to the reference distribution.\n",
4545
"\n",
@@ -56,7 +56,7 @@
5656
"\n",
5757
"Arguments:\n",
5858
"\n",
59-
"* `x_ref`: Data used as reference distribution.\n",
59+
"* `x_ref`: Data used as reference distribution. Note this should be the raw data, for example `np.array([0, 0, 1, 0, 0, 0])`, not the 2x2 contingency table.\n",
6060
"\n",
6161
"Keyword arguments:\n",
6262
"\n",

licenses/license.txt

Lines changed: 74 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ the file ChangeLog history information documenting your changes. Please read
639639
the FAQ for more information on the distribution of modified source versions.
640640

641641
PyWavelets
642-
1.3.0
642+
1.4.1
643643
MIT License
644644
Copyright (c) 2006-2012 Filip Wasilewski <http://en.ig.ma/>
645645
Copyright (c) 2012-2020 The PyWavelets Developers <https://github.com/PyWavelets/pywt>
@@ -689,7 +689,7 @@ SOFTWARE.
689689

690690

691691
alibi-detect
692-
0.10.1.dev0
692+
0.10.3
693693
Apache Software License
694694
Apache License
695695
Version 2.0, January 2004
@@ -921,7 +921,7 @@ SOFTWARE.
921921

922922

923923
certifi
924-
2022.6.15
924+
2022.9.24
925925
Mozilla Public License 2.0 (MPL 2.0)
926926
This package contains a modified version of ca-bundle.crt:
927927

@@ -931,7 +931,7 @@ Certificate data from Mozilla as of: Thu Nov 3 19:04:19 2011#
931931
This is a bundle of X.509 certificates of public Certificate Authorities
932932
(CA). These were automatically extracted from Mozilla's root certificates
933933
file (certdata.txt). This file can be found in the mozilla source tree:
934-
http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1#
934+
https://hg.mozilla.org/mozilla-central/file/tip/security/nss/lib/ckfw/builtins/certdata.txt
935935
It contains the certificates in PEM format and therefore
936936
can be directly used with curl / libcurl / php_curl, or with
937937
an Apache+mod_ssl webserver for SSL client authentication.
@@ -947,7 +947,7 @@ one at http://mozilla.org/MPL/2.0/.
947947

948948

949949
charset-normalizer
950-
2.1.0
950+
2.1.1
951951
MIT License
952952
MIT License
953953

@@ -971,6 +971,40 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
971971
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
972972
SOFTWARE.
973973

974+
contourpy
975+
1.0.5
976+
BSD License
977+
BSD 3-Clause License
978+
979+
Copyright (c) 2021-2022, ContourPy Developers.
980+
All rights reserved.
981+
982+
Redistribution and use in source and binary forms, with or without
983+
modification, are permitted provided that the following conditions are met:
984+
985+
1. Redistributions of source code must retain the above copyright notice, this
986+
list of conditions and the following disclaimer.
987+
988+
2. Redistributions in binary form must reproduce the above copyright notice,
989+
this list of conditions and the following disclaimer in the documentation
990+
and/or other materials provided with the distribution.
991+
992+
3. Neither the name of the copyright holder nor the names of its
993+
contributors may be used to endorse or promote products derived from
994+
this software without specific prior written permission.
995+
996+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
997+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
998+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
999+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1000+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1001+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1002+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1003+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1004+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1005+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1006+
1007+
9741008
cycler
9751009
0.11.0
9761010
BSD License
@@ -1048,7 +1082,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10481082

10491083

10501084
filelock
1051-
3.7.1
1085+
3.8.0
10521086
Public Domain
10531087
This is free and unencumbered software released into the public domain.
10541088

@@ -1077,7 +1111,7 @@ For more information, please refer to <http://unlicense.org>
10771111

10781112

10791113
fonttools
1080-
4.34.4
1114+
4.37.4
10811115
MIT License
10821116
MIT License
10831117

@@ -1103,7 +1137,7 @@ SOFTWARE.
11031137

11041138

11051139
fsspec
1106-
2022.7.1
1140+
2022.10.0
11071141
BSD License
11081142
BSD 3-Clause License
11091143

@@ -1137,7 +1171,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11371171

11381172

11391173
huggingface-hub
1140-
0.8.1
1174+
0.10.1
11411175
Apache Software License
11421176
Apache License
11431177
Version 2.0, January 2004
@@ -1343,7 +1377,7 @@ Apache Software License
13431377

13441378

13451379
idna
1346-
3.3
1380+
3.4
13471381
BSD License
13481382
BSD 3-Clause License
13491383

@@ -1404,7 +1438,7 @@ THE SOFTWARE.
14041438

14051439

14061440
imageio
1407-
2.21.0
1441+
2.22.2
14081442
BSD License
14091443
Copyright (c) 2014-2022, imageio developers
14101444
All rights reserved.
@@ -1433,7 +1467,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14331467

14341468

14351469
importlib-metadata
1436-
4.12.0
1470+
5.0.0
14371471
Apache Software License
14381472

14391473
Apache License
@@ -1640,7 +1674,7 @@ Apache Software License
16401674

16411675

16421676
joblib
1643-
1.1.0
1677+
1.2.0
16441678
BSD License
16451679
BSD 3-Clause License
16461680

@@ -1806,7 +1840,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18061840

18071841

18081842
matplotlib
1809-
3.5.2
1843+
3.6.1
18101844
Python Software Foundation License
18111845
License agreement for matplotlib versions 1.3.0 and later
18121846
=========================================================
@@ -1909,7 +1943,7 @@ Licensee agrees to be bound by the terms and conditions of this License
19091943
Agreement.
19101944

19111945
networkx
1912-
2.8.5
1946+
2.8.7
19131947
BSD License
19141948
NetworkX is distributed with the 3-clause BSD license.
19151949

@@ -5345,14 +5379,14 @@ under the terms of *both* these licenses.
53455379

53465380

53475381
pandas
5348-
1.4.3
5382+
1.5.1
53495383
BSD License
53505384
BSD 3-Clause License
53515385

53525386
Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
53535387
All rights reserved.
53545388

5355-
Copyright (c) 2011-2021, Open source contributors.
5389+
Copyright (c) 2011-2022, Open source contributors.
53565390

53575391
Redistribution and use in source and binary forms, with or without
53585392
modification, are permitted provided that the following conditions are met:
@@ -5381,7 +5415,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
53815415

53825416

53835417
partd
5384-
1.2.0
5418+
1.3.0
53855419
BSD
53865420
Copyright (c) 2015, Continuum Analytics, Inc. and contributors
53875421
All rights reserved.
@@ -5414,7 +5448,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
54145448

54155449

54165450
pydantic
5417-
1.9.1
5451+
1.10.2
54185452
MIT License
54195453
The MIT License (MIT)
54205454

@@ -5521,7 +5555,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55215555
The above BSD License Applies to all code, even that also covered by Apache 2.0.
55225556

55235557
pytz
5524-
2022.1
5558+
2022.5
55255559
MIT License
55265560
Copyright (c) 2003-2019 Stuart Bishop <[email protected]>
55275561

@@ -5545,7 +5579,7 @@ DEALINGS IN THE SOFTWARE.
55455579

55465580

55475581
regex
5548-
2022.7.25
5582+
2022.9.13
55495583
Apache Software License
55505584
This work was derived from the 're' module of CPython 2.6 and CPython 3.1,
55515585
copyright (c) 1998-2001 by Secret Labs AB and licensed under CNRI's Python 1.6
@@ -6058,7 +6092,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
60586092

60596093

60606094
scipy
6061-
1.9.0
6095+
1.9.3
60626096
BSD License
60636097
Copyright (c) 2001-2002 Enthought, Inc. 2003-2022, SciPy Developers.
60646098
All rights reserved.
@@ -6093,7 +6127,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
60936127

60946128
----
60956129

6096-
This binary distribution of Scipy also bundles the following software:
6130+
This binary distribution of SciPy also bundles the following software:
60976131

60986132

60996133
Name: OpenBLAS
@@ -7024,7 +7058,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
70247058
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70257059

70267060
tifffile
7027-
2022.8.3
7061+
2022.10.10
70287062
BSD License
70297063
BSD 3-Clause License
70307064

@@ -7059,7 +7093,7 @@ POSSIBILITY OF SUCH DAMAGE.
70597093

70607094

70617095
tokenizers
7062-
0.12.1
7096+
0.13.1
70637097
Apache Software License
70647098
UNKNOWN
70657099

@@ -7128,7 +7162,7 @@ DAMAGE.
71287162

71297163

71307164
tqdm
7131-
4.64.0
7165+
4.64.1
71327166
MIT License; Mozilla Public License 2.0 (MPL 2.0)
71337167
`tqdm` is a product of collaborative work.
71347168
Unless otherwise stated, all authors (see commit logs) retain copyright
@@ -7182,7 +7216,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
71827216

71837217

71847218
transformers
7185-
4.21.1
7219+
4.23.1
71867220
Apache Software License
71877221
Copyright 2018- The Hugging Face team. All rights reserved.
71887222

@@ -7390,7 +7424,7 @@ Copyright 2018- The Hugging Face team. All rights reserved.
73907424

73917425

73927426
typing-extensions
7393-
4.3.0
7427+
4.4.0
73947428
Python Software Foundation License
73957429
A. HISTORY OF THE SOFTWARE
73967430
==========================
@@ -7407,12 +7441,11 @@ software.
74077441

74087442
In May 2000, Guido and the Python core development team moved to
74097443
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
7410-
year, the PythonLabs team moved to Digital Creations (now Zope
7411-
Corporation, see http://www.zope.com). In 2001, the Python Software
7412-
Foundation (PSF, see http://www.python.org/psf/) was formed, a
7413-
non-profit organization created specifically to own Python-related
7414-
Intellectual Property. Zope Corporation is a sponsoring member of
7415-
the PSF.
7444+
year, the PythonLabs team moved to Digital Creations, which became
7445+
Zope Corporation. In 2001, the Python Software Foundation (PSF, see
7446+
https://www.python.org/psf/) was formed, a non-profit organization
7447+
created specifically to own Python-related Intellectual Property.
7448+
Zope Corporation was a sponsoring member of the PSF.
74167449

74177450
All Python releases are Open Source (see http://www.opensource.org for
74187451
the Open Source Definition). Historically, most, but not all, Python
@@ -7468,8 +7501,9 @@ analyze, test, perform and/or display publicly, prepare derivative works,
74687501
distribute, and otherwise use Python alone or in any derivative version,
74697502
provided, however, that PSF's License Agreement and PSF's notice of copyright,
74707503
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
7471-
2011, 2012, 2013, 2014 Python Software Foundation; All Rights Reserved" are
7472-
retained in Python alone or in any derivative version prepared by Licensee.
7504+
2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Python Software Foundation;
7505+
All Rights Reserved" are retained in Python alone or in any derivative version
7506+
prepared by Licensee.
74737507

74747508
3. In the event Licensee prepares a derivative work that is based on
74757509
or incorporates Python or any part thereof, and wants to make
@@ -7574,9 +7608,9 @@ version prepared by Licensee. Alternately, in lieu of CNRI's License
75747608
Agreement, Licensee may substitute the following text (omitting the
75757609
quotes): "Python 1.6.1 is made available subject to the terms and
75767610
conditions in CNRI's License Agreement. This Agreement together with
7577-
Python 1.6.1 may be located on the Internet using the following
7611+
Python 1.6.1 may be located on the internet using the following
75787612
unique, persistent identifier (known as a handle): 1895.22/1013. This
7579-
Agreement may also be obtained from a proxy server on the Internet
7613+
Agreement may also be obtained from a proxy server on the internet
75807614
using the following URL: http://hdl.handle.net/1895.22/1013".
75817615

75827616
3. In the event Licensee prepares a derivative work that is based on
@@ -7649,7 +7683,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
76497683

76507684

76517685
urllib3
7652-
1.26.11
7686+
1.26.12
76537687
MIT License
76547688
MIT License
76557689

@@ -7675,7 +7709,7 @@ SOFTWARE.
76757709

76767710

76777711
zipp
7678-
3.8.1
7712+
3.9.0
76797713
MIT License
76807714
Copyright Jason R. Coombs
76817715

0 commit comments

Comments
 (0)