From f67abf4a665cbe7b680c3a4545efc1d1b26ab359 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Fri, 15 Aug 2025 12:51:43 +0200 Subject: [PATCH] gnu: python-captum: Update to 0.8.0. * gnu/packages/machine-learning.scm (python-captum): Update to 0.8.0. [aguments]: Use G-Expressions. : Add "tests" option parameter. [native-inputs]: Remove jupyter, python-annoy, python-black, python-flake8, python-ipython, python-ipywidgets, python-mypy, python-pytest, and python-pytest-cov. Change-Id: I1df3c97e8fd5f0075888420a9f9b4a6411bd58bb Signed-off-by: Sharlatan Hellseher --- gnu/packages/machine-learning.scm | 47 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 3c4f8d3ef6da96d79740c58a78fc7575b9429d9e..80f8ebd61345f62e0f7b097dd5bb188587432bc3 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -5546,7 +5546,7 @@ Actions for the Lightning suite of libraries.") (define-public python-captum (package (name "python-captum") - (version "0.7.0") + (version "0.8.0") (source (origin (method git-fetch) (uri (git-reference @@ -5555,35 +5555,32 @@ Actions for the Lightning suite of libraries.") (file-name (git-file-name name version)) (sha256 (base32 - "0bgfwnlsi50hbmknn7qljiy93fi6ggwz3k7yk9kj7s37mhzaylym")))) + "066sal7hzpk9gsb6pk61sa9x01ckjbjb2mc8c69nc7aghqqrpqjs")))) (build-system pyproject-build-system) (arguments (list #:test-flags - '(list "-k" (string-append - ;; These two tests (out of more than 1000 tests) fail because of - ;; accuracy problems. - "not test_softmax_classification_batch_multi_target" - " and not test_softmax_classification_batch_zero_baseline" - ;; This test fails with PyTorch 2.7.0 due to stricter - ;; torch.load weights_only behavior. - " and not test_exp_sets_with_diffent_lengths")))) + #~(list "-k" (string-append + ;; These two tests (out of more than 1000 tests) fail + ;; because of accuracy problems. + "not test_softmax_classification_batch_multi_target" + " and not test_softmax_classification_batch_zero_baseline" + ;; This test fails with PyTorch 2.7.0 due to stricter + ;; torch.load weights_only behavior. + " and not test_exp_sets_with_diffent_lengths") + "tests"))) + (native-inputs + (list python-flask + python-pytest + python-flask-compress + python-parameterized + python-scikit-learn + python-setuptools)) (propagated-inputs - (list python-matplotlib python-numpy python-pytorch python-tqdm)) - (native-inputs (list jupyter - python-annoy - python-black - python-flake8 - python-flask - python-flask-compress - python-ipython - python-ipywidgets - python-mypy - python-parameterized - python-pytest - python-pytest-cov - python-scikit-learn - python-setuptools)) + (list python-matplotlib + python-numpy + python-pytorch + python-tqdm)) (home-page "https://captum.ai") (synopsis "Model interpretability for PyTorch") (description "Captum is a model interpretability and understanding library