summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-shap/package.py
blob: d20ba4597cb37bd0b9bd9bbd0fb5d2f48b230bf9 (plain) (blame)
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
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class PyShap(PythonPackage):
    """SHAP (SHapley Additive exPlanations): a unified approach
    to explain the output of any machine learning model."""

    homepage = "https://github.com/slundberg/shap/"
    pypi = "shap/shap-0.41.0.tar.gz"

    license("MIT")

    version("0.41.0", sha256="a49ea4d65aadbc845a695fa3d7ea0bdfc8c928b8e213b0feedf5868ade4b3ca5")

    depends_on("py-setuptools", type="build")

    depends_on("py-numpy", type=("build", "run"))
    depends_on("py-scipy", type=("build", "run"))
    depends_on("py-scikit-learn", type=("build", "run"))
    depends_on("py-pandas", type=("build", "run"))
    depends_on("py-tqdm@4.25.1:", type=("build", "run"))
    depends_on("py-packaging@20.10:", type=("build", "run"))
    depends_on("py-slicer@0.0.7", type=("build", "run"))
    depends_on("py-numba", type=("build", "run"))
    depends_on("py-cloudpickle", type=("build", "run"))