guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#50956] [PATCH v2 2/4] gnu: Add python-cma.


From: Vinicius Monego
Subject: [bug#50956] [PATCH v2 2/4] gnu: Add python-cma.
Date: Wed, 13 Oct 2021 02:00:33 +0000

* gnu/packages/machine-learning.scm (python-cma): New variable.
---
 gnu/packages/machine-learning.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index 478e9548e9..6b7736702a 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1150,6 +1150,33 @@ good at identifying feature interactions that are 
normally overlooked by
 standard feature selection algorithms.")
     (license license:expat)))
 
+(define-public python-cma
+  (package
+    (name "python-cma")
+    (version "3.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "cma" version))
+       (sha256
+        (base32 "1ip32lnilbhmv1fyvmmdn5rcf084c0ps4q9dr3cf2ax5wdzhg0rv"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "python" "-m" "cma.test")))))))
+    (propagated-inputs
+     `(("python-numpy" ,python-numpy)))
+    (home-page "https://github.com/CMA-ES/pycma";)
+    (synopsis "Python implementation of CMA-ES")
+    (description "@code{pycma} is a Python implementation of CMA-ES and a few
+related numerical optimization tools.")
+    (license license:bsd-3)))
+
 (define-public python-cmaes
   (package
     (name "python-cmaes")
-- 
2.30.2






reply via email to

[Prev in Thread] Current Thread [Next in Thread]