[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
40/47: gnu: python-scikit-optimize: Make compatible with latest sklearn.
|
From: |
guix-commits |
|
Subject: |
40/47: gnu: python-scikit-optimize: Make compatible with latest sklearn. |
|
Date: |
Wed, 10 Jan 2024 13:53:25 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 589d2e5f15ecee03856d4e0617ad826f3d8ddf9b
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 41ab834f53..cbe548a824 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
- branch wip-python-science created (now 58e7d0cfc3), guix-commits, 2024/01/10
- 01/47: gnu: Add python-cython-0.29.35., guix-commits, 2024/01/10
- 06/47: gnu: meson-python: Update to 0.15.0., guix-commits, 2024/01/10
- 04/47: gnu: Add python-pyproject-metadata-0.7., guix-commits, 2024/01/10
- 08/47: gnu: python-tifffile: Update to 2023.12.9., guix-commits, 2024/01/10
- 05/47: gnu: Add python-pydevtool., guix-commits, 2024/01/10
- 13/47: gnu: python-pypng: Update to 0.20220715.0., guix-commits, 2024/01/10
- 11/47: gnu: python-scikit-image: Update to 0.22.0., guix-commits, 2024/01/10
- 03/47: gnu: python-doit: Update to 0.36.0., guix-commits, 2024/01/10
- 10/47: gnu: python-imageio: Update to 2.33.1., guix-commits, 2024/01/10
- 40/47: gnu: python-scikit-optimize: Make compatible with latest sklearn.,
guix-commits <=
- 45/47: gnu: Add python-asyncinject., guix-commits, 2024/01/10
- 14/47: gnu: python-matplotx: Disable test_png test., guix-commits, 2024/01/10
- 16/47: gnu: python-pynndescent: Update to 0.5.11., guix-commits, 2024/01/10
- 38/47: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/10
- 19/47: gnu: python-kiwisolver: Update to 1.4.5., guix-commits, 2024/01/10
- 44/47: gnu: python-metpy: Update to 1.6.0., guix-commits, 2024/01/10
- 31/47: gnu: python-reportlab: Update to 4.0.8., guix-commits, 2024/01/10
- 25/47: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests., guix-commits, 2024/01/10
- 02/47: gnu: Add pybind11-2.10., guix-commits, 2024/01/10
- 09/47: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/10