Package Details: python-shap 0.42.1-1

Git Clone URL: https://aur.archlinux.org/python-shap.git (read-only, click to copy)
Package Base: python-shap
Description: Game theoretic approach to explain the output of any machine learning model
Upstream URL: https://github.com/slundberg/shap
Keywords: Additive exPlanations shapley
Licenses: MIT
Submitter: flipflop97
Maintainer: mboquien
Last Packager: mboquien
Votes: 2
Popularity: 0.003024
First Submitted: 2020-05-22 21:13 (UTC)
Last Updated: 2023-07-15 17:49 (UTC)

Latest Comments

rudy.matela commented on 2023-07-07 12:26 (UTC)

Here's a further update: python-shap-0.42.0-2

I have now included optional dependencies as listed in: https://github.com/slundberg/shap/blob/master/pyproject.toml

# Maintainer: Philip Goto <philip.goto@gmail.com>
# Contributor: Rudy Matela <rudy@matela.com.br>
# Contributor: Philip Goto <philip.goto@gmail.com>

pkgname=python-shap
pkgver=0.42.0
pkgrel=2
pkgdesc='A game theoretic approach to explain the output of any machine learning model'
arch=(i686 x86_64 armv7h aarch64)
url='https://pypi.org/project/shap/'
_url='https://github.com/slundberg/shap'
license=(BSD)
depends=(
  gcc-libs
  glibc
  ipython
  python
  python-cloudpickle
  python-dill
  python-keras
  python-lime
  python-matplotlib
  python-numba
  python-numpy
  python-packaging
  python-pandas
  python-scikit-learn
  python-scipy
  python-slicer
  python-tqdm
)
makedepends=(
  python-setuptools
  python-wheel
)
optdepends=(
  python-catboost
  python-opencv
  python-pyspark
  python-pytorch
  python-tensorflow
  python-xgboost
)
_archive="${pkgname#python-}-$pkgver"
source=("${_url}/archive/v${pkgver}/${_archive}.tar.gz")
sha256sums=('73a9e99dee19e1db4ba058c5bf6209ce2bd49f6e91c3c16e94480f8bbb92c97a')

package() {
    cd $_archive
    python setup.py install --root="$pkgdir" --optimize=1
    install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}

rudy.matela commented on 2023-07-07 11:06 (UTC) (edited on 2023-07-07 12:23 (UTC) by rudy.matela)

@mboquien, version 0.42.0 of python-shap was released yesterday:

https://github.com/slundberg/shap/releases/tag/v0.42.0

I think several dependencies are missing from the PKGBUILD, namely: python-cloudpickle, python-dill, python-keras, python-lime, python-matplotlib, python-numba, python-numpy, python-packaging, python-pandas, python-scikit-learn, python-scipy, python-slicer and python-tqdm.

Here is an updated PKGBUILD with the above dependencies:

# Maintainer: Philip Goto <philip.goto@gmail.com>
# Contributor: Rudy Matela <rudy@matela.com.br>
# Contributor: Philip Goto <philip.goto@gmail.com>

pkgname=python-shap
pkgver=0.42.0
pkgrel=1
pkgdesc='A game theoretic approach to explain the output of any machine learning model'
arch=(i686 x86_64 armv7h aarch64)
url='https://pypi.org/project/shap/'
_url='https://github.com/slundberg/shap'
license=(BSD)
depends=(
  gcc-libs
  glibc
  ipython
  python
  python-cloudpickle
  python-dill
  python-keras
  python-lime
  python-matplotlib
  python-numba
  python-numpy
  python-packaging
  python-pandas
  python-scikit-learn
  python-scipy
  python-slicer
  python-tensorflow
  python-tqdm
)
makedepends=(
  python-setuptools
  python-wheel
)
_archive="${pkgname#python-}-$pkgver"
source=("${_url}/archive/v${pkgver}/${_archive}.tar.gz")
sha256sums=('73a9e99dee19e1db4ba058c5bf6209ce2bd49f6e91c3c16e94480f8bbb92c97a')

package() {
    cd $_archive
    python setup.py install --root="$pkgdir" --optimize=1
    install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}

There are still a few other potential missing deps, which namcap is able to list: namcap python-shap-0.42.0-1-x86_64.pkg.tar.zst

If you add me as co-maintainer, I'll happily address these myself. If not, feel free to use the above PKGBUILD. :-)