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
This commit is contained in:
Sharlatan Hellseher 2025-03-22 22:36:35 +00:00
parent 6ac3bc012f
commit 77a8c240e0
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
2 changed files with 50 additions and 49 deletions

View file

@ -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")