forked from deepchecks/deepchecks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
122 lines (95 loc) · 4.45 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
# ----------------------------------------------------------------------------
# Copyright (C) 2021 Deepchecks (https://www.deepchecks.com)
#
# This file is part of Deepchecks.
# Deepchecks is distributed under the terms of the GNU Affero General
# Public License (version 3 or later).
# You should have received a copy of the GNU Affero General Public License
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#
"""
|build| |Documentation Status| |pkgVersion| |pyVersions|
|Maintainability| |Coverage Status|
.. image:: https://raw.githubusercontent.com/deepchecks/deepchecks/main/docs/images/deepchecks-logo-with-white-wide-back.png
:target: https://github.com/deepchecks/deepchecks
Deepchecks is a Python package for comprehensively validating your machine learning models and data with minimal effort.
This includes checks related to various types of issues, such as model performance, data integrity,
distribution mismatches, and more.
What Do You Need in Order to Start Validating?
----------------------------------------------
Depending on your phase and what you wise to validate, you'll need a
subset of the following:
- Raw data (before pre-processing such as OHE, string processing,
etc.), with optional labels
- The model's training data with labels
- Test data (which the model isn't exposed to) with labels
- A model compatible with scikit-learn API that you wish to validate
(e.g. RandomForest, XGBoost)
Deepchecks validation accompanies you from the initial phase when you
have only raw data, through the data splits, and to the final stage of
having a trained model that you wish to evaluate. Accordingly, each
phase requires different assets for the validation. See more about
typical usage scenarios and the built-in suites in the
`docs <https://docs.deepchecks.com/?utm_source=pypi.org&utm_medium=referral&utm_campaign=readme>`__.
Installation
------------
Using pip
~~~~~~~~~
.. code:: bash
pip install deepchecks #--upgrade --user
Using conda
~~~~~~~~~~~
.. code:: bash
conda install -c deepchecks deepchecks
.. |build| image:: https://github.com/deepchecks/deepchecks/actions/workflows/build.yml/badge.svg
.. |Documentation Status| image:: https://readthedocs.org/projects/deepchecks/badge/?version=latest
:target: https://docs.deepchecks.com/en/latest/?badge=latest
.. |pkgVersion| image:: https://img.shields.io/pypi/v/deepchecks
.. |pyVersions| image:: https://img.shields.io/pypi/pyversions/deepchecks
.. |Maintainability| image:: https://api.codeclimate.com/v1/badges/970b11794144139975fa/maintainability
:target: https://codeclimate.com/github/deepchecks/deepchecks/maintainability
.. |Coverage Status| image:: https://coveralls.io/repos/github/deepchecks/deepchecks/badge.svg?branch=main
:target: https://coveralls.io/github/deepchecks/deepchecks?branch=main
"""
import setuptools
from setuptools import setup
from distutils.util import convert_path
import os
main_ns = {}
DOCLINES = (__doc__ or '').split("\n")
with open(os.path.join('./', 'VERSION')) as version_file:
VER = version_file.read().strip()
requirementPath = os.path.dirname(os.path.realpath(__file__)) + '/requirements.txt'
install_requires = []
if os.path.isfile(requirementPath):
with open(requirementPath) as f:
install_requires = f.read().splitlines()
setup(
name='deepchecks',
version=VER,
packages=setuptools.find_packages(),
install_requires=install_requires,
license_files = ('LICENSE', ),
description = DOCLINES[0],
long_description="\n".join(DOCLINES[2:]),
author = 'deepchecks',
author_email = '[email protected]',
url = 'https://github.com/deepchecks/deepchecks',
download_url = "https://github.com/deepchecks/deepchecks/releases/download/{0}/deepchecks-{0}.tar.gz".format(VER),
keywords = ['Software Development', 'Machine Learning'],
include_package_data=True,
classifiers = [
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
)