From patchwork Thu Jul 8 23:20:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 31243 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 92C2127BC81; Fri, 9 Jul 2021 00:45:14 +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=unavailable 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 5032C27BC78 for ; Fri, 9 Jul 2021 00:45:14 +0100 (BST) Received: from localhost ([::1]:38210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1dhh-0005ot-AT for patchwork@mira.cbaines.net; Thu, 08 Jul 2021 19:45:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1dhW-0005ok-Nj for guix-patches@gnu.org; Thu, 08 Jul 2021 19:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46327) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1dhW-0004F7-Fh for guix-patches@gnu.org; Thu, 08 Jul 2021 19:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1dhW-0002rc-Ah for guix-patches@gnu.org; Thu, 08 Jul 2021 19:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49473] [PATCH] gnu: Add python-hyperopt. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Jul 2021 23:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49473 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49473@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162578786710938 (code B ref -1); Thu, 08 Jul 2021 23:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jul 2021 23:44:27 +0000 Received: from localhost ([127.0.0.1]:57873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1dgx-0002qM-HV for submit@debbugs.gnu.org; Thu, 08 Jul 2021 19:44:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:53940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1dgt-0002q9-66 for submit@debbugs.gnu.org; Thu, 08 Jul 2021 19:44:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1dgs-0005nc-LA for guix-patches@gnu.org; Thu, 08 Jul 2021 19:44:22 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1dgq-00043M-4z for guix-patches@gnu.org; Thu, 08 Jul 2021 19:44:22 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E017D240026 for ; Fri, 9 Jul 2021 01:44:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1625787855; bh=P6V60+b2ill4KqLl4URn8fg0kBx+kUgm1wc8TQw6aMQ=; h=From:To:Cc:Subject:Date:From; b=MEZmYY4tkV3llEwDDREPvT9NtpJoZ8D+Mmzskkj4pMXOr6w+fSx7fqB5efOktwIlZ 4QHlVHPpbsV77Ct+qYHvcbGTEWTciD52lZxLGYPgKe4vbbnRTqw0WP7MfHO8F/fyhV kTjEYIIUlE9WXQx1FVEc4eplrmOzFxJHFbPKxfgFlEqs9lyukyvYdbiKvcX6MAJPVi voe1ugDAOcfUOliW5sXkSrqnCjoQ2CWxJibYGJV4V7HMgFwZm/9SgvOuUOBCxc94Rz 2UvF7HiWCbP64/7vjKF6jGdDxPzwciA1qUzpM92KpoG4dPJmw3LEbq54Wld2q4p6GV Mzh9tIXRv41QQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GLXv23QTWz6tm9; Fri, 9 Jul 2021 01:44:14 +0200 (CEST) From: Vinicius Monego Date: Thu, 8 Jul 2021 23:20:57 +0000 Message-Id: <20210708232057.20492-1-monego@posteo.net> MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=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-hyperopt): New variable. --- gnu/packages/machine-learning.scm | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index fbe7734bd1..e6f94eb594 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1268,6 +1268,57 @@ Models, is a program for performing both single-SNP and SNP-set genome-wide association studies (GWAS) on extremely large data sets.") (license license:asl2.0))) +(define-public python-hyperopt + (package + (name "python-hyperopt") + (version "0.2.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "hyperopt" version)) + (sha256 + (base32 "1k4ma8ci0bxghw7g4ms944zak1pi83yv2d6bxd7fcslm1zalfq5w")))) + (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" "pytest" "--ignore" + ;; Needs python-pyspark. + "hyperopt/tests/test_spark.py" + ;; Needs both python-scikit-learn and python-lightgbm. + "--ignore" "hyperopt/tests/test_atpe_basic.py" + ;; The tests below need python-lightgbm. + "-k" (string-append "not test_branin" + " and not test_distractor" + " and not test_q1lognormal" + " and not test_quadratic1" + " and not test_twoarms")))))))) + (propagated-inputs + `(("python-cloudpickle" ,python-cloudpickle) + ("python-future" ,python-future) + ("python-networkx" ,python-networkx) + ("python-numpy" ,python-numpy) + ("python-scipy" ,python-scipy) + ("python-six" ,python-six) + ("python-tqdm" ,python-tqdm))) + (native-inputs + `(("python-black" ,python-black) + ("python-ipython" ,python-ipython) + ("python-ipyparallel" ,python-ipyparallel) + ("python-nose" ,python-nose) + ("python-pymongo" ,python-pymongo) + ("python-pytest" ,python-pytest))) + (home-page "https://hyperopt.github.io/hyperopt/") + (synopsis "Library for hyperparameter optimization") + (description "Hyperopt is a Python library for serial and parallel +optimization over awkward search spaces, which may include real-valued, +discrete, and conditional dimensions.") + (license license:bsd-3))) + ;; There have been no proper releases yet. (define-public kaldi (let ((commit "d4791c0f3fc1a09c042dac365e120899ee2ad21e")