-
Notifications
You must be signed in to change notification settings - Fork 307
/
setup.py
157 lines (152 loc) · 3.5 KB
/
setup.py
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
147
148
149
150
151
152
153
154
155
156
157
import setuptools
version = "0.3.0"
with open("aix360/version.py", "w") as f:
f.write('# generated by setup.py\nversion = "{}"\n'.format(version))
extra_requires = {
"default": [
"numpy",
"pandas",
"scikit-learn",
"matplotlib",
],
"rbm": [
"matplotlib",
"pandas<2.0.0",
"scipy>=0.17,<=1.10.1",
"scikit-learn<1.2.0",
"cvxpy>=1.1",
"numpy<=1.24.3",
],
"profwt": [
"keras==2.3.1",
"scipy>=0.17",
"tensorflow==1.14",
],
"cofrnet": [
"pandas<2.0.0",
"torch",
"tqdm",
],
"ted": [
"pandas",
"scikit-learn",
],
"dipvae": [
"matplotlib",
"torch",
"torchvision",
],
"rule_induction": [
"matplotlib",
"numba",
"pandas<2.0.0",
"scikit-learn",
"nyoka",
"cvxpy",
"xmltodict==0.12.0",
],
"lime": [
"lime",
"tqdm",
"pandas",
],
"matching": ["otoc @ git+https://github.com/IBM/otoc@main#egg=otoc"],
"protodash": [
"scikit-learn",
"xport",
"scipy>=0.17,<=1.10.1",
"cvxpy",
"requests",
],
"contrastive": [
"keras==2.3.1",
"tensorflow==1.14",
"requests",
"scipy>=0.17",
"scikit-image",
"torch",
"h5py<3.0.0", # to resolve keras error: 'str' object has no attribute 'decode'
],
"shap": [
"keras==2.3.1",
"tensorflow==1.14",
"matplotlib",
"numba",
"pandas<2.0.0",
"shap",
"tqdm",
],
"nncontrastive": [
"pandas<2.0.0",
"tensorflow==2.9.3",
],
"tsice": [
"pandas<2.0.0",
"scipy",
"plotly", # required for units
"ipython", # required for units
"kaleido", # required for units
"requests", # required for dataset and units
],
"tssaliency": [
"pandas<2.0.0",
"requests", # required for dataset and units
],
"imd": [
"numpy<2.0.0",
"pandas",
"scikit-learn",
"matplotlib",
"networkx",
"graphviz",
"pygraphviz", # for creating graph visualization
],
"tslime": [
"pandas<2.0.0",
"scipy",
"requests", # required for dataset and units
],
"gce": [
"pandas<2.0.0",
"shap",
"numba<=0.56",
"requests", # required for dataset and units
],
"ecertify": [
"numpy<2.0.0",
"pandas",
"scikit-learn",
"matplotlib",
"zoopt",
"lime",
"shap==0.42.1",
],
}
# minimal dependencies in install_requires
install_requires = extra_requires["default"] # ted is supported by default.
setuptools.setup(
name="aix360",
version=version,
description="IBM AI Explainability 360",
authos="aix360 developers",
url="https://github.com/IBM/AIX360",
author_email="[email protected]",
packages=setuptools.find_packages(),
license="Apache License 2.0",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
install_requires=install_requires,
extras_require=extra_requires,
package_data={
"aix360": [
"data/*",
"data/*/*",
"data/*/*/*",
"models/*",
"models/*/*",
"models/*/*/*",
]
},
include_package_data=True,
zip_safe=False,
)