flake/packages/shap/default.nix
matthewcroughan 5615f114d7 init
2023-02-11 22:54:48 +00:00

64 lines
954 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, writeText
, isPy27
, pytestCheckHook
, pytest-mpl
, numpy
, scipy
, scikit-learn
, pandas
, transformers
, opencv4
, lightgbm
, catboost
, pyspark
, sentencepiece
, tqdm
, slicer
, numba
, matplotlib
, nose
, lime
, cloudpickle
, ipython
, packaging
}:
buildPythonPackage rec {
pname = "shap";
version = "0.41.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-pJ6k1lqtvIRaaV+j1+oL38jJKLjiE7D+7fWGit5LPKU=";
};
propagatedBuildInputs = [
numpy
scipy
scikit-learn
pandas
tqdm
slicer
numba
cloudpickle
packaging
];
passthru.optional-dependencies = {
plots = [ matplotlib ipython ];
others = [ lime ];
};
# TODO FIXME
doCheck = false;
meta = with lib; {
description = "A unified approach to explain the output of any machine learning model";
homepage = "https://github.com/slundberg/shap";
};
}