-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
107 lines (95 loc) · 2.76 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "probmetrics"
dynamic = ["version"]
description = 'Probabilistic metrics and calibration methods'
readme = "README.md"
requires-python = ">=3.9"
license = "Apache-2.0"
keywords = ['Metrics', 'Classification', 'Calibration', 'Refinement']
authors = [
{ name = "David Holzmüller" }, #, email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"torch>=2.0",
"numpy>=1.25,<2.0",
"scikit-learn>=1.3",
# older versions of torchmetrics (<1.2.1) have a bug that makes certain metrics slow:
# https://github.com/Lightning-AI/torchmetrics/pull/2184
"torchmetrics>=1.2.1",
]
[project.optional-dependencies]
extra = [
"venn-abers", # Venn-Abers calibration
"cir-model", # centered isotonic regression
"netcal", # for temperature scaling comparison
"relplot", # for smooth ECE
]
dev = [
"matplotlib>=3.0", # plotting
"fire", # running scripts
# documentation
"sphinx>=7.0",
"myst_parser>=3.0",
"sphinx_rtd_theme>=2.0",
# testing
"pytest>=7.0",
"pytest-cov>=4.0",
"scipy", # used only for testing
]
dirichletcal = [# requires python >= 3.12
"dirichletcal", # dirichlet calibration
]
[tool.hatch.version]
path = "probmetrics/__about__.py"
[tool.hatch.envs.default]
installer = "uv"
features = ["extra", "dev"]
[tool.hatch.envs.hatch-test]
installer = "uv"
features = ["extra", "dev"]
[tool.hatch.build.targets.sdist]
package = ['probmetrics']
only-include = ['probmetrics']
[tool.hatch.build.targets.wheel]
package = ['probmetrics']
only-include = ['probmetrics']
[project.urls]
Documentation = "https://github.com/dholzmueller/probmetrics#readme"
Issues = "https://github.com/dholzmueller/probmetrics/issues"
Source = "https://github.com/dholzmueller/probmetrics"
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:probmetrics tests}"
[tool.coverage.run]
source_pkgs = ["probmetrics", "tests"]
branch = true
parallel = true
omit = [
"probmetrics/__about__.py",
]
[tool.coverage.paths]
main = ["probmetrics", "*/probmetrics/probmetrics"]
tests = ["tests", "*/probmetrics/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]