unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 50956@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#50956] [PATCH v2 2/4] gnu: Add python-cma.
Date: Wed, 13 Oct 2021 02:00:33 +0000	[thread overview]
Message-ID: <20211013020035.53000-2-monego@posteo.net> (raw)
In-Reply-To: <20211013020035.53000-1-monego@posteo.net>

* 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	other threads:[~2021-10-13  2:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-02  3:39 [bug#50956] [PATCH 0/3] Add Optuna Vinicius Monego
2021-10-02  3:41 ` [bug#50956] [PATCH 1/3] gnu: Add python-cma Vinicius Monego
2021-10-02  3:41   ` [bug#50956] [PATCH 2/3] gnu: Add python-skorch Vinicius Monego
2021-10-02  3:41   ` [bug#50956] [PATCH 3/3] gnu: Add python-optuna Vinicius Monego
2021-10-13  2:00 ` [bug#50956] [PATCH v2 1/4] gnu: Add python-scikit-optimize Vinicius Monego
2021-10-13  2:00   ` Vinicius Monego [this message]
2021-10-13  2:00   ` [bug#50956] [PATCH v2 3/4] gnu: Add python-skorch Vinicius Monego
2021-10-13  2:00   ` [bug#50956] [PATCH v2 4/4] gnu: Add python-optuna Vinicius Monego

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211013020035.53000-2-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=50956@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).