-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
146 lines (133 loc) · 4.16 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
requires = ["hatchling>=1.26.1"] # https://github.com/pypa/hatch/issues/1818
build-backend = "hatchling.build"
[project]
name = "pytabkit"
dynamic = ["version"]
description = 'ML models + benchmark for tabular data classification and regression'
readme = "README.md"
requires-python = ">=3.9"
license = "Apache-2.0"
keywords = ['tabular data', 'scikit-learn', 'deep learning', 'gradient boosting', 'RealMLP']
authors = [
{ name = "David Holzmüller" }, #, email = "a@b.org" },
{ name = "Léo Grinsztajn" }, #, email = "a@b.org" },
]
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",
"pandas>=2.0",
"scikit-learn>=1.3,<1.6",
"xgboost>=2.0",
"catboost>=1.2",
"lightgbm>=4.1",
# older versions of torchmetrics (<1.2.1) have a bug that makes certain metrics used in tabr slow:
# https://github.com/Lightning-AI/torchmetrics/pull/2184
"torchmetrics>=1.2.1",
# can also install the newer lightning package with more dependencies instead, it will be prioritized
"pytorch_lightning>=2.0",
"skorch>=0.15", # for rtdl models
"dask[dataframe]>=2023", # this is here because of a pandas warning:
# "Dask dataframe query planning is disabled because dask-expr is not installed"
# "packaging", # unclear why this is here?
"tqdm", # for TabM with verbosity >= 1
"psutil>=5.0",
# packages for saving objects in different formats
"dill",
"pyyaml>=5.0",
"msgpack>=1.0",
# apparently msgpack_numpy fixed some bug in using numpy arrays in msgpack?
# but apparently it can also cause a bug in ray due to its monkey-patching of msgpack functions
# in theory we shouldn't be using if for numpy arrays at the moment, not sure why the need for this occured
# "msgpack_numpy>=0.4",
]
[project.optional-dependencies]
autogluon = [
"autogluon.tabular[all]>=1.0",
"autogluon.multimodal>=1.0",
]
extra = [
"kditransform>=0.2",
]
hpo = [
"ConfigSpace>=0.7",
"smac>=2.0",
"hyperopt>=0.2",
]
bench = [
"fire", # argparse utilities
"ray>=2.8", # parallelization
"pynvml>=11.0", # NVIDIA GPU utilization
"openml>=0.14", # OpenML data download
# ----- UCI import ------
"requests>=2.0",
"patool>=1.0",
"openpyxl>=3.0",
"xlrd>=2.0",
# ----- plotting -----
"matplotlib>=3.0",
"tueplots>=0.0.12",
"seaborn>=0.0.13",
"adjustText>=1.0",
"autorank>=1.0",
]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"sphinx>=7.0",
"myst_parser>=3.0",
"sphinx_rtd_theme>=2.0",
]
[tool.hatch.version]
path = "pytabkit/__about__.py"
[tool.hatch.envs.default]
installer = "uv"
features = ["bench","autogluon","extra","hpo","dev"]
[tool.hatch.envs.hatch-test]
installer = "uv"
features = ["bench","dev"]
#features = ["bench","autogluon","extra","hpo","dev"]
[tool.hatch.build.targets.sdist]
package = ['pytabkit']
only-include = ['pytabkit']
[tool.hatch.build.targets.wheel]
package = ['pytabkit']
only-include = ['pytabkit']
[project.urls]
Documentation = "https://github.com/dholzmueller/pytabkit#readme"
Issues = "https://github.com/dholzmueller/pytabkit/issues"
Source = "https://github.com/dholzmueller/pytabkit"
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:pytabkit tests}"
[tool.coverage.run]
source_pkgs = ["pytabkit", "tests"]
branch = true
parallel = true
omit = [
"pytabkit/__about__.py",
]
[tool.coverage.paths]
models = ["pytabkit/models", "*/pytabkit/pytabkit/models"]
bench = ["pytabkit/bench", "*/pytabkit/pytabkit/bench"]
tests = ["tests", "*/pytabkit/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]