From patchwork Wed Jun 30 21:40:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 30866 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 00F8327BC83; Wed, 30 Jun 2021 22:42:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B168027BC81 for ; Wed, 30 Jun 2021 22:42:13 +0100 (BST) Received: from localhost ([::1]:42588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyhyG-00087c-LO for patchwork@mira.cbaines.net; Wed, 30 Jun 2021 17:42:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyhy6-00082H-7u for guix-patches@gnu.org; Wed, 30 Jun 2021 17:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyhy6-0000Oe-0L for guix-patches@gnu.org; Wed, 30 Jun 2021 17:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyhy5-0006Ru-Qs for guix-patches@gnu.org; Wed, 30 Jun 2021 17:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49303] [PATCH] gnu: Add python-cmaes. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Jun 2021 21:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49303 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49303@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162508927724736 (code B ref -1); Wed, 30 Jun 2021 21:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Jun 2021 21:41:17 +0000 Received: from localhost ([127.0.0.1]:59001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyhxN-0006Qt-IR for submit@debbugs.gnu.org; Wed, 30 Jun 2021 17:41:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:58288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyhxL-0006Ql-Aq for submit@debbugs.gnu.org; Wed, 30 Jun 2021 17:41:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyhxL-0007tU-2a for guix-patches@gnu.org; Wed, 30 Jun 2021 17:41:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyhxI-000864-JK for guix-patches@gnu.org; Wed, 30 Jun 2021 17:41:14 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 479422400FD for ; Wed, 30 Jun 2021 23:41:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1625089268; bh=765th9ICGCapRIWjL/CgwWLx4GhrvCBset0ozKDShEo=; h=From:To:Cc:Subject:Date:From; b=B5pYNylZkDxFBG6ctZIbG2muBBGmb8eZV3qsPJwQj/JLzI0y3moamS5EbRKFydwsS 1kLU1CIwmNAXDP+44zqLOA2YUhpSMcYxa+u7Mq0KmqL3ZhKEVk+ytFg2Kosw8bl9by hNNUx8Rg13CTcnqznFKiFoArLNBnJkxkTm94E2b1bpNPXzqKdqpu5gQ/bX7t6reSOG ZzZS42l9AmqaP7uDhfiQrW4IoGwprkUg2HWCqWrwL03vebdiFUnLQNvcG2W0LgEWJf OwWTyQmMlLsW3bH1cichspkA4lNRLkLmWZgA3Gh8DNHTERL8xDECk/8iKSWTuO1N2m 9b/ZyPPhz4Bvw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GFZXf51Yvz9rxF; Wed, 30 Jun 2021 23:41:06 +0200 (CEST) From: Vinicius Monego Date: Wed, 30 Jun 2021 21:40:26 +0000 Message-Id: <20210630214026.924365-1-monego@posteo.net> MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=monego@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/machine-learning.scm (python-cmaes): New variable. --- gnu/packages/machine-learning.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 837ebbba67..504cabc11d 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1012,6 +1012,31 @@ good at identifying feature interactions that are normally overlooked by standard feature selection algorithms.") (license license:expat))) +(define-public python-cmaes + (package + (name "python-cmaes") + (version "0.8.2") + (source + (origin + (method git-fetch) ;no tests in PyPI + (uri (git-reference + (url "https://github.com/CyberAgent/cmaes") + (commit (string-append "v" version)))) + (sha256 + (base32 "1jyckaifir528dz6m95nvky8hvqmz5gz6dlp65baahhbca0danzb")) + (file-name (git-file-name name version)))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools) ;build fails without this + ("python-wheel" ,python-wheel))) + (propagated-inputs + `(("python-numpy" ,python-numpy))) + (home-page "https://github.com/CyberAgent/cmaes") + (synopsis "CMA-ES implementation for Python") + (description "This package provides provides an implementation of the +Covariance Matrix Adaptation Evolution Strategy (CMA-ES) for Python.") + (license license:expat))) + (define-public python-autograd (let* ((commit "442205dfefe407beffb33550846434baa90c4de7") (revision "0")