2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
tqdm,
|
|
|
|
scikit-learn,
|
|
|
|
scikit-image,
|
|
|
|
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lime";
|
|
|
|
version = "0.2.0.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-dpYOTwVf61Pom1AiODuvyHtj8lusYmWYSwozPRpX94E=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
tqdm
|
|
|
|
scikit-learn
|
|
|
|
scikit-image
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|