python3Packages.lime: init at 0.2.0.1 (#237973)
* python3Packages.lime: init at 0.2.0.1 * python3Packages.lime: use scikit-learn instead of scikit-learn-extra * python3Packages.lime: added import checks
This commit is contained in:
parent
a7b65c5251
commit
37bceead90
2 changed files with 63 additions and 0 deletions
61
pkgs/development/python-modules/lime/default.nix
Normal file
61
pkgs/development/python-modules/lime/default.nix
Normal file
|
@ -0,0 +1,61 @@
|
|||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
|
||||
, matplotlib
|
||||
, numpy
|
||||
, scipy
|
||||
, tqdm
|
||||
, scikit-learn
|
||||
, scikit-image
|
||||
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lime";
|
||||
version = "0.2.0.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-dpYOTwVf61Pom1AiODuvyHtj8lusYmWYSwozPRpX94E=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
matplotlib
|
||||
numpy
|
||||
scipy
|
||||
tqdm
|
||||
scikit-learn
|
||||
scikit-image
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# touches network
|
||||
"lime/tests/test_lime_text.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"lime.exceptions"
|
||||
"lime.explanation"
|
||||
"lime.lime_base"
|
||||
"lime.lime_image"
|
||||
"lime.lime_text"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Local Interpretable Model-Agnostic Explanations for machine learning classifiers";
|
||||
homepage = "https://github.com/marcotcr/lime";
|
||||
changelog = "https://github.com/marcotcr/lime/releases/tag/${version}";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ khaser ];
|
||||
};
|
||||
}
|
|
@ -5846,6 +5846,8 @@ self: super: with self; {
|
|||
|
||||
lima = callPackage ../development/python-modules/lima { };
|
||||
|
||||
lime = callPackage ../development/python-modules/lime { };
|
||||
|
||||
limiter= callPackage ../development/python-modules/limiter { };
|
||||
|
||||
limitlessled = callPackage ../development/python-modules/limitlessled { };
|
||||
|
|
Loading…
Reference in a new issue