-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (73 loc) · 2.12 KB
/
Copy pathpyproject.toml
File metadata and controls
78 lines (73 loc) · 2.12 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "shap-relativities"
version = "0.2.0"
description = "Extract multiplicative rating relativities from GBM models using SHAP values. Built for insurance pricing."
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Burning Cost", email = "pricing.frontier@gmail.com" },
]
keywords = [
"shap", "insurance", "pricing", "actuarial", "relativities",
"gbm", "catboost",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Office/Business :: Financial",
]
dependencies = [
"polars>=0.20",
"numpy>=1.24",
"scipy>=1.7",
]
[project.optional-dependencies]
# shap + tree model libraries — needed to compute SHAP values from a model.
# CatBoost is the default and recommended GBM for insurance pricing.
# pandas is a required bridge dependency: shap's TreeExplainer uses it
# internally for column name handling. It is not used in the library API.
ml = [
"shap>=0.42",
"catboost>=1.2",
"scikit-learn>=1.3",
"pandas>=2.0",
]
# matplotlib for plot_relativities()
plot = [
"matplotlib>=3.7",
]
# Everything — use this for a complete install
all = [
"shap>=0.42",
"catboost>=1.2",
"scikit-learn>=1.3",
"pandas>=2.0",
"matplotlib>=3.7",
]
dev = [
"pytest",
"catboost>=1.2",
"shap>=0.42",
"scikit-learn>=1.3",
"pandas>=2.0",
"matplotlib>=3.7",
]
[project.urls]
Homepage = "https://github.com/burningcost/shap-relativities"
Repository = "https://github.com/burningcost/shap-relativities"
"Issue Tracker" = "https://github.com/burningcost/shap-relativities/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/shap_relativities"]
[tool.pytest.ini_options]
testpaths = ["tests"]