[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
39/55: gnu: python-scikit-optimize: Make compatible with latest sklearn.
From: |
guix-commits |
Subject: |
39/55: gnu: python-scikit-optimize: Make compatible with latest sklearn. |
Date: |
Mon, 15 Jan 2024 07:42:26 -0500 (EST) |
rekado pushed a commit to branch wip-python-science
in repository guix.
commit 959794dce626f54a89aed324656ed5744eacbc8b
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
- 31/55: gnu: cnvkit: Update to 0.9.10., (continued)
- 31/55: gnu: cnvkit: Update to 0.9.10., guix-commits, 2024/01/15
- 33/55: gnu: python-cooler: Update to 0.9.1., guix-commits, 2024/01/15
- 34/55: gnu: python-pint: Update to 0.23., guix-commits, 2024/01/15
- 41/55: gnu: python-hicexplorer: Make compatible with latest scipy., guix-commits, 2024/01/15
- 45/55: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/15
- 49/55: gnu: python-adjusttext: Disable tests., guix-commits, 2024/01/15
- 50/55: gnu: python-mysql-connector-python: Defuse time bomb., guix-commits, 2024/01/15
- 52/55: gnu: python-xarray: Update to 2023.12.0., guix-commits, 2024/01/15
- 51/55: gnu: python-telomerecat: Disable tests., guix-commits, 2024/01/15
- 53/55: gnu: python-dask: Propagate click., guix-commits, 2024/01/15
- 39/55: gnu: python-scikit-optimize: Make compatible with latest sklearn.,
guix-commits <=
- 43/55: gnu: python-metpy: Update to 1.6.0., guix-commits, 2024/01/15
- 46/55: gnu: python-click-default-group: Update to 1.2.4., guix-commits, 2024/01/15
- 47/55: gnu: python-pandas: Update to 1.5.3., guix-commits, 2024/01/15
- 55/55: gnu: python-bbknn: Update to 1.6.0., guix-commits, 2024/01/15
- 37/55: gnu: scvelo: Make compatible with latest matplotlib., guix-commits, 2024/01/15
- 40/55: gnu: python-hicmatrix: Update to 17.1., guix-commits, 2024/01/15
- 44/55: gnu: Add python-asyncinject., guix-commits, 2024/01/15
- 48/55: gnu: python-scikit-bio: Update to 0.5.9., guix-commits, 2024/01/15
- 54/55: gnu: python-geopandas: Update to 0.14.2., guix-commits, 2024/01/15