[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch wip-python-science updated: gnu: python-scikit-optimize: Make com
|
From: |
guix-commits |
|
Subject: |
branch wip-python-science updated: gnu: python-scikit-optimize: Make compatible with latest sklearn. |
|
Date: |
Wed, 10 Jan 2024 05:24:06 -0500 |
This is an automated email from the git hooks/post-receive script.
rekado pushed a commit to branch wip-python-science
in repository guix.
The following commit(s) were added to refs/heads/wip-python-science by this
push:
new 49b6bfa003 gnu: python-scikit-optimize: Make compatible with latest
sklearn.
49b6bfa003 is described below
commit 49b6bfa003b0a5fc15828d6605f2cd75ea233755
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
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch wip-python-science updated: gnu: python-scikit-optimize: Make compatible with latest sklearn.,
guix-commits <=