forked from Trusted-AI/AIF360
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (48 loc) · 2.2 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
from setuptools import setup, find_packages
from functools import reduce
long_description = """The AI Fairness 360 toolkit is an open-source library to help detect and mitigate bias in machine
learning models. The AI Fairness 360 Python package includes a comprehensive set of metrics for datasets and models to
test for biases, explanations for these metrics, and algorithms to mitigate bias in datasets and models.
We have developed the package with extensibility in mind. This library is still in development. We encourage the
contribution of your datasets, metrics, explainers, and debiasing algorithms."""
version = '0.5.0'
with open("aif360/version.py", 'w') as f:
f.write('# generated by setup.py\nversion = "{}"\n'.format(version))
extras = {
'OptimPreproc': ['cvxpy>=1.0'],
'AdversarialDebiasing': ['tensorflow>=1.13.1'],
'DisparateImpactRemover': ['BlackBoxAuditing'],
'LFR': ['torch'],
'LIME': ['lime'],
'ART': ['adversarial-robustness-toolbox>=1.0.0'],
'Reductions': ['fairlearn~=0.7'],
'FairAdapt': ['rpy2'],
'inFairness': ['skorch', 'inFairness>=0.2.2'],
'notebooks': ['jupyter', 'tqdm', 'igraph[plotting]', 'lightgbm', 'seaborn', 'ipympl'],
'LawSchoolGPA': ['tempeh'],
}
extras['tests'] = reduce(lambda l1, l2: l1+l2, extras.values(), ['pytest>=3.5', 'pytest-cov>=2.8.1'])
extras['docs'] = ['sphinx<2', 'jinja2<3.1.0', 'sphinx_rtd_theme']
extras['all'] = list(reduce(lambda s, l: s.union(l), extras.values(), set()))
setup(name='aif360',
version=version,
description='IBM AI Fairness 360',
author='aif360 developers',
author_email='[email protected]',
url='https://github.com/Trusted-AI/AIF360',
long_description=long_description,
long_description_content_type='text/markdown',
license='Apache License 2.0',
packages=[pkg for pkg in find_packages() if pkg.startswith('aif360')],
python_requires='>=3.8',
install_requires=[
'numpy>=1.16',
'scipy>=1.2.0',
'pandas>=0.24.0',
'scikit-learn>=1.0',
'matplotlib',
],
extras_require=extras,
package_data={'aif360': ['data/*', 'data/*/*', 'data/*/*/*']},
include_package_data=True,
zip_safe=False)