mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 15:22:18 -05:00
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
This commit is contained in:
parent
50dbb9561f
commit
998df6e047
1 changed files with 9 additions and 1 deletions
|
@ -335,7 +335,15 @@ (define-public python-scikit-optimize
|
||||||
;; These are for compatibility with more recent versions of
|
;; These are for compatibility with more recent versions of
|
||||||
;; numpy and scikit-learn.
|
;; numpy and scikit-learn.
|
||||||
(search-patches "python-scikit-optimize-1148.patch"
|
(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)
|
(build-system pyproject-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-joblib
|
(list python-joblib
|
||||||
|
|
Loading…
Reference in a new issue