aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-03-22 22:36:35 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-03-23 00:12:27 +0000
commit77a8c240e03838509a17692cc55861c1fa064b51 (patch)
treeb970c34838964ce5de660ea58951ee0ca162e65d
parent6ac3bc012fba7b9e9d31c12ce4eae0f4638e3c58 (diff)
downloadguix-77a8c240e03838509a17692cc55861c1fa064b51.tar.gz
guix-77a8c240e03838509a17692cc55861c1fa064b51.zip
gnu: python-gpy: Move to machine-learning.
* gnu/packages/python-science.scm (python-gpy): Move from here ... * gnu/packages/machine-learning.scm: ... to here. Change-Id: Id1c8574c166014c87ffa484ea84f798eb7f53844
-rw-r--r--gnu/packages/machine-learning.scm51
-rw-r--r--gnu/packages/python-science.scm48
2 files changed, 50 insertions, 49 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 8406830359..4ea05a7752 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -19,11 +19,12 @@
;;; Copyright © 2020, 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2022, 2023 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2022 Kiran Shila <me@kiranshila.com>
+;;; Copyright © 2022 Wiktor Zelazny <wzelazny@vurv.cz>
;;; Copyright © 2023 zamfofex <zamfofex@twdb.moe>
;;; Copyright © 2023 Navid Afkhami <navid.afkhami@mdc-berlin.de>
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2023 Troy Figiel <troy@troyfigiel.com>
-;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
+;;; Copyright © 2024-2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2024 David Pflug <david@pflug.io>
;;; Copyright © 2024 Timothee Mathieu <timothee.mathieu@inria.fr>
;;; Copyright © 2024 Spencer King <spencer.king@geneoscopy.com>
@@ -332,6 +333,54 @@ distribution estimation (one-class SVM). It supports multi-class
classification.")
(license license:bsd-3)))
+(define-public python-gpy
+ (package
+ (name "python-gpy")
+ (version "1.13.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "GPy" version))
+ (sha256
+ (base32 "083rl8nr4nmmr1pzn0g8gsc4wi9dnhj3jjhkwsssadm5vns5d0m3"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'compatibility
+ (lambda _
+ ;; This file uses Python 2 statements
+ (delete-file "GPy/testing/mpi_test__.py")
+ (substitute* "setup.py"
+ (("scipy>=1.3.0,<1.12.0")
+ "scipy>=1.3.0,<=1.13.0"))
+ ;; Use numpy.exp because scipy.ext no longer exists
+ (substitute* "GPy/kern/src/sde_standard_periodic.py"
+ (("sp\\.exp") "np.exp"))
+ (substitute* "GPy/kern/src/sde_stationary.py"
+ (("sp\\.poly1d") "np.poly1d")
+ (("sp\\.roots") "np.roots")))))))
+ (native-inputs
+ (list python-cython
+ python-matplotlib
+ python-pods
+ python-pytest
+ python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list python-numpy
+ python-paramz
+ python-scipy
+ python-six))
+ (home-page "https://sheffieldml.github.io/GPy/")
+ (synopsis "The Gaussian Process Toolbox")
+ (description
+ "@command{GPy} is a Gaussian Process (GP) framework written in
+Python, from the Sheffield machine learning group. GPy implements a range of
+machine learning algorithms based on GPs.")
+ (license license:bsd-3)))
+
(define-public python-libsvm
(package (inherit libsvm)
(name "python-libsvm")
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 265eee6233..58bf22effb 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -3751,54 +3751,6 @@ for parameterized model creation and handling. Its features include:
@end itemize")
(license license:bsd-3)))
-(define-public python-gpy
- (package
- (name "python-gpy")
- (version "1.13.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "GPy" version))
- (sha256
- (base32 "083rl8nr4nmmr1pzn0g8gsc4wi9dnhj3jjhkwsssadm5vns5d0m3"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'compatibility
- (lambda _
- ;; This file uses Python 2 statements
- (delete-file "GPy/testing/mpi_test__.py")
- (substitute* "setup.py"
- (("scipy>=1.3.0,<1.12.0")
- "scipy>=1.3.0,<=1.13.0"))
- ;; Use numpy.exp because scipy.ext no longer exists
- (substitute* "GPy/kern/src/sde_standard_periodic.py"
- (("sp\\.exp") "np.exp"))
- (substitute* "GPy/kern/src/sde_stationary.py"
- (("sp\\.poly1d") "np.poly1d")
- (("sp\\.roots") "np.roots")))))))
- (native-inputs
- (list python-cython
- python-matplotlib
- python-pods
- python-pytest
- python-setuptools
- python-wheel))
- (propagated-inputs
- (list python-numpy
- python-paramz
- python-scipy
- python-six))
- (home-page "https://sheffieldml.github.io/GPy/")
- (synopsis "The Gaussian Process Toolbox")
- (description
- "@command{GPy} is a Gaussian Process (GP) framework written in
-Python, from the Sheffield machine learning group. GPy implements a range of
-machine learning algorithms based on GPs.")
- (license license:bsd-3)))
-
(define-public python-pods
(package
(name "python-pods")