[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
39/59: gnu: python-scikit-optimize: Make compatible with latest sklearn.
From: |
guix-commits |
Subject: |
39/59: gnu: python-scikit-optimize: Make compatible with latest sklearn. |
Date: |
Tue, 16 Jan 2024 07:16:36 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 998df6e047478c00773a452989bb8a5cec12306d
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/59: gnu: Add pybind11-2.10., (continued)
- 02/59: gnu: Add pybind11-2.10., guix-commits, 2024/01/16
- 06/59: gnu: meson-python: Update to 0.15.0., guix-commits, 2024/01/16
- 12/59: gnu: python-pypng: Update to 0.20220715.0., guix-commits, 2024/01/16
- 18/59: gnu: python-kiwisolver: Update to 1.4.5., guix-commits, 2024/01/16
- 27/59: gnu: tadbit: Add missing input., guix-commits, 2024/01/16
- 28/59: gnu: python-pyani: Disable tests., guix-commits, 2024/01/16
- 15/59: gnu: python-pynndescent: Update to 0.5.11., guix-commits, 2024/01/16
- 25/59: gnu: python-poliastro: Make compatible with latest matplotlib., guix-commits, 2024/01/16
- 31/59: gnu: cnvkit: Update to 0.9.10., guix-commits, 2024/01/16
- 32/59: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/16
- 39/59: gnu: python-scikit-optimize: Make compatible with latest sklearn.,
guix-commits <=
- 37/59: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/16
- 38/59: gnu: python-fit-nbinom: Disable tests., guix-commits, 2024/01/16
- 40/59: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/16
- 42/59: gnu: python-pint: Add missing input., guix-commits, 2024/01/16
- 41/59: gnu: python-hicexplorer: Make compatible with latest scipy., guix-commits, 2024/01/16
- 44/59: gnu: Add python-asyncinject., guix-commits, 2024/01/16
- 52/59: gnu: python-xarray: Update to 2023.12.0., guix-commits, 2024/01/16
- 53/59: gnu: python-dask: Propagate click., guix-commits, 2024/01/16
- 14/59: gnu: python-scikit-learn: Update to 1.3.2., guix-commits, 2024/01/16
- 47/59: gnu: python-pandas: Update to 1.5.3., guix-commits, 2024/01/16