[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 14:53:01 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit eaa4cab99e357f3e2230ba715f92a815736c692a
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
- 24/47: gnu: python-scanpy: Update to 1.9.6., (continued)
- 24/47: gnu: python-scanpy: Update to 1.9.6., guix-commits, 2024/01/10
- 25/47: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests., guix-commits, 2024/01/10
- 27/47: gnu: python-captum: Update to 0.7.0., guix-commits, 2024/01/10
- 22/47: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/10
- 29/47: gnu: python-pyani: Disable tests., guix-commits, 2024/01/10
- 32/47: gnu: cnvkit: Update to 0.9.10., guix-commits, 2024/01/10
- 33/47: gnu: python-plastid: Update to 0.6.1., guix-commits, 2024/01/10
- 34/47: gnu: python-cooler: Update to 0.9.1., guix-commits, 2024/01/10
- 35/47: gnu: python-pint: Update to 0.23., guix-commits, 2024/01/10
- 42/47: gnu: python-hicexplorer: Make compatible with latest scipy., 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
- 11/47: gnu: python-scikit-image: Update to 0.22.0., guix-commits, 2024/01/10
- 38/47: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/10
- 43/47: gnu: python-pint: Add missing input., guix-commits, 2024/01/10
- 39/47: gnu: python-fit-nbinom: Disable tests., guix-commits, 2024/01/10
- 47/47: gnu: python-click-default-group: Update to 1.2.4., guix-commits, 2024/01/10
- 36/47: gnu: python-demuxem: Disable tests., guix-commits, 2024/01/10
- 41/47: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/10
- 44/47: gnu: python-metpy: Update to 1.6.0., guix-commits, 2024/01/10
- 46/47: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/10