guix-patches
[Top][All Lists]
Advanced

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

[bug#50956] [PATCH 1/3] gnu: Add python-cma.


From: Vinicius Monego
Subject: [bug#50956] [PATCH 1/3] gnu: Add python-cma.
Date: Sat, 2 Oct 2021 03:41:15 +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 e34de5df43..281c88d6f8 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]