summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorCayetano Santos <csantosb@inventati.org>2025-08-15 12:51:43 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-23 13:33:27 +0100
commitf67abf4a665cbe7b680c3a4545efc1d1b26ab359 (patch)
tree887e927ede0f2856a01ec6ef42f2aa0865f02e2f /gnu
parent9a5efe278c7431f0a5cfe01825bfb97f0806d6f5 (diff)
gnu: python-captum: Update to 0.8.0.
* gnu/packages/machine-learning.scm (python-captum): Update to 0.8.0. [aguments]: Use G-Expressions. <test-flags>: 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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/machine-learning.scm47
1 files changed, 22 insertions, 25 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 3c4f8d3ef6d..80f8ebd6134 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