summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/machine-learning.scm17
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 43b1f7420bd..e66660b992e 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -6620,7 +6620,22 @@ linear algebra routines needed for structured matrices (or operators).")
" and not test_emsemble_map_saas"
" and not test_negative_fixed_features")
;; Requires optional 'pfns' dependency.
- "--ignore=test_community/")))
+ "--ignore=test_community/")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-hypervolume-initial-hvs
+ (lambda _
+ ;; PyTorch 2.10 rejects passing a torch.Size plus extra args to `view'.
+ (substitute* "botorch/utils/multi_objective/hypervolume.py"
+ (("self\\._batch_sample_shape, *\\*obj\\.shape\\[-2:\\]")
+ "self._batch_sample_shape"))))
+ (add-before 'build 'pretend-version
+ ;; The version string is usually derived via setuptools-scm,
+ ;; but without the git metadata available, the version string
+ ;; is set to '0.0.0'.
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
+ #$(package-version this-package)))))))
(propagated-inputs (list python-gpytorch
python-linear-operator
python-multipledispatch