evalsuite-python 0.1.0a1__py3-none-any.whl

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,150 @@
1
+ Metadata-Version: 2.5
2
+ Name: evalsuite-python
3
+ Version: 0.1.0a1
4
+ Summary: A unified Python framework for machine-learning, clinical, statistical, segmentation, object-detection, uncertainty, and model evaluation.
5
+ Project-URL: Homepage, https://evalsuite-nine.vercel.app
6
+ Project-URL: Documentation, https://evalsuite-nine.vercel.app/docs
7
+ Project-URL: Source, https://github.com/mkcs28/evalsuite-python
8
+ Project-URL: Issues, https://github.com/mkcs28/evalsuite-python/issues
9
+ Project-URL: Changelog, https://github.com/mkcs28/evalsuite-python/blob/main/CHANGELOG.md
10
+ Author: Manoj Kumar C S
11
+ Maintainer: Manoj Kumar C S
12
+ License-Expression: MIT
13
+ License-File: LICENSE
14
+ Keywords: classification,evaluation,machine learning,metrics,regression,reproducibility,statistics
15
+ Classifier: Development Status :: 3 - Alpha
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Intended Audience :: Science/Research
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Topic :: Scientific/Engineering
27
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
28
+ Classifier: Typing :: Typed
29
+ Requires-Python: >=3.9
30
+ Requires-Dist: numpy>=1.22
31
+ Requires-Dist: pandas>=1.4
32
+ Requires-Dist: scipy>=1.8
33
+ Provides-Extra: all
34
+ Requires-Dist: matplotlib>=3.5; extra == 'all'
35
+ Provides-Extra: dev
36
+ Requires-Dist: build; extra == 'dev'
37
+ Requires-Dist: hypothesis>=6.80; extra == 'dev'
38
+ Requires-Dist: mypy>=1.10; extra == 'dev'
39
+ Requires-Dist: pandas-stubs; extra == 'dev'
40
+ Requires-Dist: pip-audit; extra == 'dev'
41
+ Requires-Dist: pytest-cov>=4; extra == 'dev'
42
+ Requires-Dist: pytest>=7; extra == 'dev'
43
+ Requires-Dist: ruff>=0.6; extra == 'dev'
44
+ Requires-Dist: scikit-learn>=1.2; extra == 'dev'
45
+ Requires-Dist: twine; extra == 'dev'
46
+ Provides-Extra: plot
47
+ Requires-Dist: matplotlib>=3.5; extra == 'plot'
48
+ Description-Content-Type: text/markdown
49
+
50
+ # EvalSuite
51
+
52
+ [![CI](https://github.com/mkcs28/evalsuite-python/actions/workflows/ci.yml/badge.svg)](https://github.com/mkcs28/evalsuite-python/actions/workflows/ci.yml)
53
+ [![PyPI](https://img.shields.io/pypi/v/evalsuite-python)](https://pypi.org/project/evalsuite-python/)
54
+ [![Python](https://img.shields.io/pypi/pyversions/evalsuite-python)](https://pypi.org/project/evalsuite-python/)
55
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
56
+
57
+ **Unified, reproducible evaluation for machine learning and research.**
58
+
59
+ EvalSuite brings classification and regression metrics (with clinical, statistical, segmentation and
60
+ object-detection evaluation on the roadmap) into one consistent, validated, documented framework.
61
+
62
+ > **Status: in development (v0.1.0 in progress).** The API may change before 0.1.0.
63
+
64
+ ## Installation
65
+
66
+ ```bash
67
+ pip install evalsuite-python
68
+ ```
69
+
70
+ The package is installed as `evalsuite-python` and imported as `evalsuite`:
71
+
72
+ ```python
73
+ import evalsuite as es
74
+ ```
75
+
76
+ ## Why EvalSuite
77
+
78
+ - **One consistent API.** Every metric returns a result object that behaves like a number and exports to
79
+ JSON, pandas, Markdown and LaTeX.
80
+ - **Explicit conventions.** Averaging, label order, the positive class and zero-division behaviour are stated
81
+ and recorded in every result, never silently assumed.
82
+ - **Validated.** Each metric is tested against scikit-learn where definitions coincide, plus property-based
83
+ tests and edge cases.
84
+ - **Documented.** Every metric carries its definition, formula, range, input requirements and references,
85
+ available programmatically through `metric_info()`.
86
+ - **Efficient.** `evaluate()` validates inputs once and computes the confusion matrix once for all metrics.
87
+ - **Lightweight.** Requires only NumPy, SciPy and pandas.
88
+
89
+ ## Quick start
90
+
91
+ ```python
92
+ import evalsuite as es
93
+
94
+ y_true = [0, 1, 1, 0, 1, 0]
95
+ y_pred = [0, 1, 0, 0, 1, 1]
96
+ y_prob = [0.1, 0.9, 0.4, 0.2, 0.8, 0.6]
97
+
98
+ result = es.evaluate(y_true, y_pred, y_prob=y_prob)
99
+ print(result.summary())
100
+
101
+ result["f1"] # MetricResult(f1=0.666667)
102
+ f"{result['mcc']:.3f}" # '0.333'
103
+ result.to_latex(caption="Test-set performance")
104
+ result.to_dataframe()
105
+
106
+ es.f1(y_true, y_pred) # individual metrics
107
+ es.roc_auc(y_true, y_prob)
108
+ es.metric_info("classification.mcc").formula # documentation
109
+ es.list_metrics("regression")
110
+ ```
111
+
112
+ ## Metrics in this release
113
+
114
+ **Classification** (binary, multiclass, multilabel; micro/macro/weighted/samples/per-class averaging;
115
+ sample weights): accuracy, balanced accuracy, precision, recall, specificity, NPV, F1, F-beta, Jaccard,
116
+ MCC, Cohen's kappa (unweighted, linear, quadratic), Hamming loss, confusion matrix, ROC AUC (binary,
117
+ one-vs-rest, one-vs-one), average precision, ROC and PR curves, log loss, Brier score, top-k accuracy.
118
+
119
+ **Regression** (single and multi-output; sample weights): MAE, MSE, RMSE, R², adjusted R², MAPE, sMAPE,
120
+ MSLE, RMSLE, median absolute error, explained variance, max error, mean bias error, quantile (pinball)
121
+ loss, Huber loss, relative absolute error, relative squared error.
122
+
123
+ ## Conventions
124
+
125
+ - `average="auto"` resolves to `"binary"` for binary targets and `"macro"` otherwise; the resolved value
126
+ is stored in `result.params["average"]`.
127
+ - Labels are sorted unless you pass `labels=[...]`; that order defines per-class outputs and the columns
128
+ of 2-D `y_prob`.
129
+ - Undefined ratios (zero denominators) return 0 **with an `UndefinedMetricWarning`**; pass
130
+ `zero_division=np.nan` to propagate NaN, or `0`/`1` to choose silently.
131
+ - Domain violations raise clear errors instead of being patched over (for example MAPE with zero targets).
132
+
133
+ ## Development
134
+
135
+ ```bash
136
+ python -m venv .venv && source .venv/bin/activate
137
+ pip install -e ".[dev]"
138
+ pytest --cov=evalsuite
139
+ ruff check . && ruff format --check . && mypy
140
+ ```
141
+
142
+ ## Links
143
+
144
+ - PyPI: https://pypi.org/project/evalsuite-python/
145
+ - Website and documentation: https://evalsuite-nine.vercel.app
146
+ - Website source: https://github.com/mkcs28/evalsuite
147
+
148
+ ## License
149
+
150
+ MIT. See [LICENSE](LICENSE).
@@ -0,0 +1,21 @@
1
+ evalsuite/__init__.py,sha256=F1w6941ptTkxj2ypslarIx8KegXCFuTbxcaGg-DYpMA,2239
2
+ evalsuite/api.py,sha256=x1hu_2Q06WN2NwFlGO4CfIcXZz0bjkQ66QAxMFfGmeo,9107
3
+ evalsuite/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ evalsuite/version.py,sha256=4QyIQYHnJ3CLZp00htZ8iaV8KmLrqSkoXFZtHHrL4ic,100
5
+ evalsuite/classification/__init__.py,sha256=5EaNh2vrGBuOlxQp0r5e-A52egAzK0vVE3mlLOj9JEw,719
6
+ evalsuite/classification/_common.py,sha256=3ANV33ix_mnOzvOAG8glyJO-iYVhhTGO0S3YG0ZddB8,4543
7
+ evalsuite/classification/metrics.py,sha256=0EpPcKnOSdcRmrRHbbAykKDqSdWKy67-kk2GXVWofLk,33682
8
+ evalsuite/core/__init__.py,sha256=oDHl5Dc2GoZf1tCtJueMQ2KcmOq7zhzMZT9XF4uVC6U,93
9
+ evalsuite/core/context.py,sha256=gvRpH3b-S2oAgAGW9W0XWnBVbuydQP3UB9rgWQNM60g,7874
10
+ evalsuite/core/exceptions.py,sha256=9eZI_Lmgwc9fjkSUY9s3fwjAb7KoqgAlcYetrHRhbBg,1503
11
+ evalsuite/core/registry.py,sha256=3l2_o2PlckuKY89HxfnxPLf-sDaCe_-McUcAcUmXusk,2884
12
+ evalsuite/core/result.py,sha256=YGivFboHri-ny0CN3HhzDwRQdo0OmrswZZhRDNk605I,10577
13
+ evalsuite/core/types.py,sha256=r6bhUk7CYAcrlQzjmf-6xWQsNqO3EOipZD-e-2yAJTI,720
14
+ evalsuite/core/validation.py,sha256=EIAd6m5DIguFM4wLUNVissEYqvjylYEuLGrPq8hOUpw,8350
15
+ evalsuite/regression/__init__.py,sha256=t2XEHUw6e5tyWBHcEeiog2WWd-wwaxf4m5AIX8dJyng,571
16
+ evalsuite/regression/metrics.py,sha256=4_6tIwNukGI5WRbSnDH1E3SI5utplEgERTzC-2RHb3A,21757
17
+ evalsuite_python-0.1.0a1.dist-info/METADATA,sha256=xqguxCZSUJ7MkkXiuM9aY1R6dXR3ewMw-DapMsz7meU,6154
18
+ evalsuite_python-0.1.0a1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
19
+ evalsuite_python-0.1.0a1.dist-info/entry_points.txt,sha256=YYIwisn4L4sQt3ntzbM0_Z4yZE2KCu3GJ6KfWL1kIwc,54
20
+ evalsuite_python-0.1.0a1.dist-info/licenses/LICENSE,sha256=GGh6ACzs6Gih4IlfbWxzHvkNKC1E9EQ3eVWW0Njpafk,1072
21
+ evalsuite_python-0.1.0a1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ evalsuite = evalsuite.cli.main:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Manoj Kumar C S
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.