[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
39/54: gnu: python-scikit-optimize: Make compatible with latest sklearn.
From: |
guix-commits |
Subject: |
39/54: gnu: python-scikit-optimize: Make compatible with latest sklearn. |
Date: |
Thu, 11 Jan 2024 17:36:15 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit aa80581934407b09c8a2930ef53fa6025aefa9cd
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Jan 10 11:22:58 2024 +0100
gnu: python-scikit-optimize: Make compatible with latest sklearn.
* gnu/packages/python-science.scm (python-scikit-optimize)[source]: Add
snippet to fix outdated use of "max_features" option.
Change-Id: I4272ffc82b4951315b74b4adee27527e8d513fca
---
gnu/packages/python-science.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index e305a727c6..c2388f9eb6 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -335,7 +335,15 @@ logic, also known as grey logic.")
;; These are for compatibility with more recent versions of
;; numpy and scikit-learn.
(search-patches "python-scikit-optimize-1148.patch"
- "python-scikit-optimize-1150.patch"))))
+ "python-scikit-optimize-1150.patch"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Since scikit-learn 1.3 max_features no longer supports
+ ;; 'auto', which is identical to 'sqrt'
+ '(substitute* '("skopt/learning/forest.py"
+ "skopt/learning/tests/test_forest.py")
+ (("max_features=['\"]auto['\"]")
+ "max_features='sqrt'")))))
(build-system pyproject-build-system)
(propagated-inputs
(list python-joblib
- 02/54: gnu: Add pybind11-2.10., (continued)
- 02/54: gnu: Add pybind11-2.10., guix-commits, 2024/01/11
- 03/54: gnu: python-doit: Update to 0.36.0., guix-commits, 2024/01/11
- 06/54: gnu: meson-python: Update to 0.15.0., guix-commits, 2024/01/11
- 04/54: gnu: Add python-pyproject-metadata-0.7., guix-commits, 2024/01/11
- 05/54: gnu: Add python-pydevtool., guix-commits, 2024/01/11
- 08/54: gnu: python-tifffile: Update to 2023.12.9., guix-commits, 2024/01/11
- 09/54: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/11
- 10/54: gnu: python-imageio: Update to 2.33.1., guix-commits, 2024/01/11
- 14/54: gnu: python-scikit-learn: Update to 1.3.2., guix-commits, 2024/01/11
- 12/54: gnu: python-pypng: Update to 0.20220715.0., guix-commits, 2024/01/11
- 39/54: gnu: python-scikit-optimize: Make compatible with latest sklearn.,
guix-commits <=
- 16/54: gnu: python-umap-learn: Update to 0.5.5., guix-commits, 2024/01/11
- 22/54: gnu: Add python-pytest-nunit., guix-commits, 2024/01/11
- 52/54: gnu: python-xarray: Update to 2023.12.0., guix-commits, 2024/01/11
- 36/54: gnu: python-cartopy: Update to 0.22.0., guix-commits, 2024/01/11
- 51/54: gnu: python-telomerecat: Disable tests., guix-commits, 2024/01/11
- 24/54: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests., guix-commits, 2024/01/11
- 20/54: gnu: python-matplotlib: Update to 3.8.2., guix-commits, 2024/01/11
- 35/54: gnu: python-demuxem: Disable tests., guix-commits, 2024/01/11
- 45/54: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/11
- 32/54: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/11