samesame 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,289 @@
1
+ Metadata-Version: 2.3
2
+ Name: samesame
3
+ Version: 0.1.0
4
+ Summary: Classifier two-sample tests and noninferiority tests.
5
+ Keywords: drift detection,data monitoring,dataset shift,data validation,model validation,noninferiority tests,statistical tests
6
+ Author: Vathy M. Kamulete
7
+ Author-email: Vathy M. Kamulete <vathymut@gmail.com>
8
+ License: GNU LESSER GENERAL PUBLIC LICENSE
9
+ Version 3, 29 June 2007
10
+
11
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
12
+ Everyone is permitted to copy and distribute verbatim copies
13
+ of this license document, but changing it is not allowed.
14
+
15
+
16
+ This version of the GNU Lesser General Public License incorporates
17
+ the terms and conditions of version 3 of the GNU General Public
18
+ License, supplemented by the additional permissions listed below.
19
+
20
+ 0. Additional Definitions.
21
+
22
+ As used herein, "this License" refers to version 3 of the GNU Lesser
23
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
24
+ General Public License.
25
+
26
+ "The Library" refers to a covered work governed by this License,
27
+ other than an Application or a Combined Work as defined below.
28
+
29
+ An "Application" is any work that makes use of an interface provided
30
+ by the Library, but which is not otherwise based on the Library.
31
+ Defining a subclass of a class defined by the Library is deemed a mode
32
+ of using an interface provided by the Library.
33
+
34
+ A "Combined Work" is a work produced by combining or linking an
35
+ Application with the Library. The particular version of the Library
36
+ with which the Combined Work was made is also called the "Linked
37
+ Version".
38
+
39
+ The "Minimal Corresponding Source" for a Combined Work means the
40
+ Corresponding Source for the Combined Work, excluding any source code
41
+ for portions of the Combined Work that, considered in isolation, are
42
+ based on the Application, and not on the Linked Version.
43
+
44
+ The "Corresponding Application Code" for a Combined Work means the
45
+ object code and/or source code for the Application, including any data
46
+ and utility programs needed for reproducing the Combined Work from the
47
+ Application, but excluding the System Libraries of the Combined Work.
48
+
49
+ 1. Exception to Section 3 of the GNU GPL.
50
+
51
+ You may convey a covered work under sections 3 and 4 of this License
52
+ without being bound by section 3 of the GNU GPL.
53
+
54
+ 2. Conveying Modified Versions.
55
+
56
+ If you modify a copy of the Library, and, in your modifications, a
57
+ facility refers to a function or data to be supplied by an Application
58
+ that uses the facility (other than as an argument passed when the
59
+ facility is invoked), then you may convey a copy of the modified
60
+ version:
61
+
62
+ a) under this License, provided that you make a good faith effort to
63
+ ensure that, in the event an Application does not supply the
64
+ function or data, the facility still operates, and performs
65
+ whatever part of its purpose remains meaningful, or
66
+
67
+ b) under the GNU GPL, with none of the additional permissions of
68
+ this License applicable to that copy.
69
+
70
+ 3. Object Code Incorporating Material from Library Header Files.
71
+
72
+ The object code form of an Application may incorporate material from
73
+ a header file that is part of the Library. You may convey such object
74
+ code under terms of your choice, provided that, if the incorporated
75
+ material is not limited to numerical parameters, data structure
76
+ layouts and accessors, or small macros, inline functions and templates
77
+ (ten or fewer lines in length), you do both of the following:
78
+
79
+ a) Give prominent notice with each copy of the object code that the
80
+ Library is used in it and that the Library and its use are
81
+ covered by this License.
82
+
83
+ b) Accompany the object code with a copy of the GNU GPL and this license
84
+ document.
85
+
86
+ 4. Combined Works.
87
+
88
+ You may convey a Combined Work under terms of your choice that,
89
+ taken together, effectively do not restrict modification of the
90
+ portions of the Library contained in the Combined Work and reverse
91
+ engineering for debugging such modifications, if you also do each of
92
+ the following:
93
+
94
+ a) Give prominent notice with each copy of the Combined Work that
95
+ the Library is used in it and that the Library and its use are
96
+ covered by this License.
97
+
98
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
99
+ document.
100
+
101
+ c) For a Combined Work that displays copyright notices during
102
+ execution, include the copyright notice for the Library among
103
+ these notices, as well as a reference directing the user to the
104
+ copies of the GNU GPL and this license document.
105
+
106
+ d) Do one of the following:
107
+
108
+ 0) Convey the Minimal Corresponding Source under the terms of this
109
+ License, and the Corresponding Application Code in a form
110
+ suitable for, and under terms that permit, the user to
111
+ recombine or relink the Application with a modified version of
112
+ the Linked Version to produce a modified Combined Work, in the
113
+ manner specified by section 6 of the GNU GPL for conveying
114
+ Corresponding Source.
115
+
116
+ 1) Use a suitable shared library mechanism for linking with the
117
+ Library. A suitable mechanism is one that (a) uses at run time
118
+ a copy of the Library already present on the user's computer
119
+ system, and (b) will operate properly with a modified version
120
+ of the Library that is interface-compatible with the Linked
121
+ Version.
122
+
123
+ e) Provide Installation Information, but only if you would otherwise
124
+ be required to provide such information under section 6 of the
125
+ GNU GPL, and only to the extent that such information is
126
+ necessary to install and execute a modified version of the
127
+ Combined Work produced by recombining or relinking the
128
+ Application with a modified version of the Linked Version. (If
129
+ you use option 4d0, the Installation Information must accompany
130
+ the Minimal Corresponding Source and Corresponding Application
131
+ Code. If you use option 4d1, you must provide the Installation
132
+ Information in the manner specified by section 6 of the GNU GPL
133
+ for conveying Corresponding Source.)
134
+
135
+ 5. Combined Libraries.
136
+
137
+ You may place library facilities that are a work based on the
138
+ Library side by side in a single library together with other library
139
+ facilities that are not Applications and are not covered by this
140
+ License, and convey such a combined library under terms of your
141
+ choice, if you do both of the following:
142
+
143
+ a) Accompany the combined library with a copy of the same work based
144
+ on the Library, uncombined with any other library facilities,
145
+ conveyed under the terms of this License.
146
+
147
+ b) Give prominent notice with the combined library that part of it
148
+ is a work based on the Library, and explaining where to find the
149
+ accompanying uncombined form of the same work.
150
+
151
+ 6. Revised Versions of the GNU Lesser General Public License.
152
+
153
+ The Free Software Foundation may publish revised and/or new versions
154
+ of the GNU Lesser General Public License from time to time. Such new
155
+ versions will be similar in spirit to the present version, but may
156
+ differ in detail to address new problems or concerns.
157
+
158
+ Each version is given a distinguishing version number. If the
159
+ Library as you received it specifies that a certain numbered version
160
+ of the GNU Lesser General Public License "or any later version"
161
+ applies to it, you have the option of following the terms and
162
+ conditions either of that published version or of any later version
163
+ published by the Free Software Foundation. If the Library as you
164
+ received it does not specify a version number of the GNU Lesser
165
+ General Public License, you may choose any version of the GNU Lesser
166
+ General Public License ever published by the Free Software Foundation.
167
+
168
+ If the Library as you received it specifies that a proxy can decide
169
+ whether future versions of the GNU Lesser General Public License shall
170
+ apply, that proxy's public statement of acceptance of any version is
171
+ permanent authorization for you to choose that version for the
172
+ Library.
173
+ Classifier: Programming Language :: Python :: 3.12
174
+ Classifier: Programming Language :: Python :: 3.13
175
+ Classifier: Typing :: Typed
176
+ Classifier: Topic :: Scientific/Engineering
177
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
178
+ Classifier: Intended Audience :: Science/Research
179
+ Classifier: Intended Audience :: Developers
180
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
181
+ Classifier: Operating System :: OS Independent
182
+ Requires-Dist: numpy>=1.21
183
+ Requires-Dist: scipy>=1.15
184
+ Requires-Dist: scikit-learn
185
+ Requires-Dist: samesame[docs,test] ; extra == 'dev'
186
+ Requires-Dist: mkdocs-material ; extra == 'docs'
187
+ Requires-Dist: mkdocstrings-python ; extra == 'docs'
188
+ Requires-Dist: numpydoc ; extra == 'docs'
189
+ Requires-Dist: jupyter ; extra == 'docs'
190
+ Requires-Dist: uv ; extra == 'test'
191
+ Requires-Dist: pytest ; extra == 'test'
192
+ Requires-Dist: pytest-cov ; extra == 'test'
193
+ Requires-Dist: ruff ; extra == 'test'
194
+ Maintainer: Vathy M. Kamulete
195
+ Maintainer-email: Vathy M. Kamulete <vathymut@gmail.com>
196
+ Requires-Python: >=3.12
197
+ Provides-Extra: dev
198
+ Provides-Extra: docs
199
+ Provides-Extra: test
200
+ Description-Content-Type: text/markdown
201
+
202
+ <!-- markdownlint-disable MD041 -->
203
+ <!-- markdownlint-disable MD033 -->
204
+ <!-- Add to badges above once on PyPI
205
+ [![ReadTheDocs](https://readthedocs.org/projects/samesame/badge/?version=latest)](https://samesame.readthedocs.io/en/stable/)
206
+ [![PyPI-Server](https://img.shields.io/pypi/v/samesame.svg)](https://pypi.org/project/samesame/)
207
+ [![Monthly Downloads](https://pepy.tech/badge/samesame/month)](https://pepy.tech/project/samesame)
208
+ -->
209
+
210
+ # samesame
211
+
212
+ <!-- badges: start -->
213
+ [![Python](https://img.shields.io/badge/python-3.12+-blue.svg)](https://pypi.org/project/samesame/)
214
+ [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
215
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
216
+ [![License: LGPLv3](https://img.shields.io/badge/License-LGPL--3.0-green.svg)](https://opensource.org/license/lgpl-3-0)
217
+ [![arXiv](https://img.shields.io/badge/arXiv-2107.02990-b31b1b.svg)](https://arxiv.org/abs/2107.02990)
218
+
219
+ <!-- badges: end -->
220
+
221
+ > Same, same but different ...
222
+
223
+ `samesame` implements classifier two-sample tests (CTSTs) and as a bonus
224
+ extension, a noninferiority test (NIT).
225
+
226
+ These were either missing or implemented with some tradeoffs
227
+ (looking at you, sample-splitting) in existing libraries. And so,
228
+ `samesame` fills in the gaps :)
229
+
230
+ ## Motivation
231
+
232
+ What is `samesame` good for? It is for data (model) validation, performance
233
+ monitoring, drift detection (dataset shift), statistical process control, and
234
+ on and on.
235
+
236
+ Want more?
237
+ [Here you go](https://vathymut.github.io/dsos/articles/motivation.html).
238
+ This motivating example comes from the related R package
239
+ [`dsos`](https://github.com/vathymut/dsos).
240
+
241
+ ## Installation
242
+
243
+ To install, run the following command:
244
+
245
+ ```bash
246
+ python -m pip install samesame
247
+ ```
248
+
249
+ ## Usage
250
+
251
+ ### Functionality
252
+
253
+ Below, you will find an overview of common modules in `samesame`.
254
+
255
+ | Function | Module |
256
+ |-------------------------------------------|------------------|
257
+ | Bayesian inference | `samesame.bayes` |
258
+ | Classifier two-sample tests (CTSTs) | `samesame.ctst` |
259
+ | Noninferiority tests (NITs) | `samesame.nit` |
260
+
261
+
262
+ ### Attributes
263
+
264
+ When the method is a statistical test, `samesame` saves (stores) the results of
265
+ some potentially computationally intensive results in attributes. These
266
+ attributes, when available, can be accessed as follows.
267
+
268
+ | Attribute | Description |
269
+ |----------------|-----------------------------------------------|
270
+ | `.statistic` | The test statistic for the hypothesis. |
271
+ | `.null` | The null distribution for the hypothesis. |
272
+ | `.pvalue` | The p-value for the hypothesis. |
273
+ | `.posterior` | The posterior distribution for the hypothesis.|
274
+ | `.bayes_factor`| The bayes factor for the hypothesis. |
275
+
276
+ ## Examples
277
+
278
+ To get started, please see the documentation and examples.
279
+
280
+ ## Dependencies
281
+
282
+ `samesame` has few dependencies beyond the standard library. It will
283
+ probably work with some older Python versions. It is, in short, a lightweight
284
+ dependency for most machine learning projects.`samesame` is built on top of,
285
+ and is compatible with, [scikit-learn][scikit-learn] and [numpy][numpy].
286
+
287
+ [numpy]: https://numpy.org/
288
+ [PyPI]: https://pypi.org/project/samesame
289
+ [scikit-learn]: https://scikit-learn.org/stable
@@ -0,0 +1,88 @@
1
+ <!-- markdownlint-disable MD041 -->
2
+ <!-- markdownlint-disable MD033 -->
3
+ <!-- Add to badges above once on PyPI
4
+ [![ReadTheDocs](https://readthedocs.org/projects/samesame/badge/?version=latest)](https://samesame.readthedocs.io/en/stable/)
5
+ [![PyPI-Server](https://img.shields.io/pypi/v/samesame.svg)](https://pypi.org/project/samesame/)
6
+ [![Monthly Downloads](https://pepy.tech/badge/samesame/month)](https://pepy.tech/project/samesame)
7
+ -->
8
+
9
+ # samesame
10
+
11
+ <!-- badges: start -->
12
+ [![Python](https://img.shields.io/badge/python-3.12+-blue.svg)](https://pypi.org/project/samesame/)
13
+ [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
14
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
15
+ [![License: LGPLv3](https://img.shields.io/badge/License-LGPL--3.0-green.svg)](https://opensource.org/license/lgpl-3-0)
16
+ [![arXiv](https://img.shields.io/badge/arXiv-2107.02990-b31b1b.svg)](https://arxiv.org/abs/2107.02990)
17
+
18
+ <!-- badges: end -->
19
+
20
+ > Same, same but different ...
21
+
22
+ `samesame` implements classifier two-sample tests (CTSTs) and as a bonus
23
+ extension, a noninferiority test (NIT).
24
+
25
+ These were either missing or implemented with some tradeoffs
26
+ (looking at you, sample-splitting) in existing libraries. And so,
27
+ `samesame` fills in the gaps :)
28
+
29
+ ## Motivation
30
+
31
+ What is `samesame` good for? It is for data (model) validation, performance
32
+ monitoring, drift detection (dataset shift), statistical process control, and
33
+ on and on.
34
+
35
+ Want more?
36
+ [Here you go](https://vathymut.github.io/dsos/articles/motivation.html).
37
+ This motivating example comes from the related R package
38
+ [`dsos`](https://github.com/vathymut/dsos).
39
+
40
+ ## Installation
41
+
42
+ To install, run the following command:
43
+
44
+ ```bash
45
+ python -m pip install samesame
46
+ ```
47
+
48
+ ## Usage
49
+
50
+ ### Functionality
51
+
52
+ Below, you will find an overview of common modules in `samesame`.
53
+
54
+ | Function | Module |
55
+ |-------------------------------------------|------------------|
56
+ | Bayesian inference | `samesame.bayes` |
57
+ | Classifier two-sample tests (CTSTs) | `samesame.ctst` |
58
+ | Noninferiority tests (NITs) | `samesame.nit` |
59
+
60
+
61
+ ### Attributes
62
+
63
+ When the method is a statistical test, `samesame` saves (stores) the results of
64
+ some potentially computationally intensive results in attributes. These
65
+ attributes, when available, can be accessed as follows.
66
+
67
+ | Attribute | Description |
68
+ |----------------|-----------------------------------------------|
69
+ | `.statistic` | The test statistic for the hypothesis. |
70
+ | `.null` | The null distribution for the hypothesis. |
71
+ | `.pvalue` | The p-value for the hypothesis. |
72
+ | `.posterior` | The posterior distribution for the hypothesis.|
73
+ | `.bayes_factor`| The bayes factor for the hypothesis. |
74
+
75
+ ## Examples
76
+
77
+ To get started, please see the documentation and examples.
78
+
79
+ ## Dependencies
80
+
81
+ `samesame` has few dependencies beyond the standard library. It will
82
+ probably work with some older Python versions. It is, in short, a lightweight
83
+ dependency for most machine learning projects.`samesame` is built on top of,
84
+ and is compatible with, [scikit-learn][scikit-learn] and [numpy][numpy].
85
+
86
+ [numpy]: https://numpy.org/
87
+ [PyPI]: https://pypi.org/project/samesame
88
+ [scikit-learn]: https://scikit-learn.org/stable
@@ -0,0 +1,70 @@
1
+ [project]
2
+ name = "samesame"
3
+ version = "0.1.0"
4
+ description = "Classifier two-sample tests and noninferiority tests."
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ dependencies = ["numpy >= 1.21", "scipy >= 1.15", "scikit-learn"]
8
+ authors = [{ name = "Vathy M. Kamulete", email = "vathymut@gmail.com" }]
9
+ maintainers = [{ name = "Vathy M. Kamulete", email = "vathymut@gmail.com" }]
10
+ license = { file = "LICENSE.txt" }
11
+ keywords = [
12
+ "drift detection",
13
+ "data monitoring",
14
+ "dataset shift",
15
+ "data validation",
16
+ "model validation",
17
+ "noninferiority tests",
18
+ "statistical tests",
19
+ ]
20
+ classifiers = [
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Typing :: Typed",
24
+ "Topic :: Scientific/Engineering",
25
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
26
+ "Intended Audience :: Science/Research",
27
+ "Intended Audience :: Developers",
28
+ "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
29
+ "Operating System :: OS Independent",
30
+ ]
31
+
32
+ [build-system]
33
+ requires = ["uv_build>=0.8.11,<0.9.0"]
34
+ build-backend = "uv_build"
35
+
36
+
37
+ [project.optional-dependencies]
38
+ dev = ["samesame[docs,test]"]
39
+ test = ["uv", "pytest", "pytest-cov", "ruff"]
40
+ docs = ["mkdocs-material", "mkdocstrings-python", "numpydoc", "jupyter"]
41
+
42
+ [tool.pytest.ini_options]
43
+ addopts = "--cov samesame --cov-report term-missing --verbose --doctest-modules --doctest-continue-on-failure"
44
+ testpaths = ["tests"]
45
+
46
+ [tool.setuptools]
47
+ package-dir = { "" = "src" }
48
+
49
+ [tool.setuptools.packages.find]
50
+ where = ["src"]
51
+
52
+ [tool.numpydoc_validation]
53
+ checks = [
54
+ "all", # report on all checks, except the below
55
+ "EX01",
56
+ "SA01",
57
+ "ES01",
58
+ ]
59
+
60
+ [tool.ruff]
61
+ line-length = 88
62
+
63
+ [tool.ruff.lint]
64
+ extend-select = [
65
+ "UP", # pyupgrade
66
+ "I", # sort imports
67
+ ]
68
+
69
+ [tool.ruff.lint.pydocstyle]
70
+ convention = "numpy"
@@ -0,0 +1,18 @@
1
+ # Copyright (c) 2025-present, Royal Bank of Canada.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+ #
7
+
8
+ from . import (
9
+ bayes,
10
+ ctst,
11
+ nit,
12
+ )
13
+
14
+ __all__ = [
15
+ "bayes",
16
+ "ctst",
17
+ "nit",
18
+ ]