From patchwork Wed Oct 13 02:00:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 33804 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 1B4A627BBE3; Wed, 13 Oct 2021 03:01:28 +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,RCVD_IN_MSPIKE_H2,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 879CA27BBE1 for ; Wed, 13 Oct 2021 03:01:27 +0100 (BST) Received: from localhost ([::1]:54062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maTaA-0007YH-Fo for patchwork@mira.cbaines.net; Tue, 12 Oct 2021 22:01:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maTZm-0007Y4-4Y for guix-patches@gnu.org; Tue, 12 Oct 2021 22:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45152) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maTZl-00041m-OX for guix-patches@gnu.org; Tue, 12 Oct 2021 22:01:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maTZl-0007TE-Nk for guix-patches@gnu.org; Tue, 12 Oct 2021 22:01:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50956] [PATCH v2 1/4] gnu: Add python-scikit-optimize. References: <20211002033916.64690-1-monego@posteo.net> In-Reply-To: <20211002033916.64690-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Oct 2021 02:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50956 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50956@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50956-submit@debbugs.gnu.org id=B50956.163409045928699 (code B ref 50956); Wed, 13 Oct 2021 02:01:01 +0000 Received: (at 50956) by debbugs.gnu.org; 13 Oct 2021 02:00:59 +0000 Received: from localhost ([127.0.0.1]:56698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maTZj-0007So-7y for submit@debbugs.gnu.org; Tue, 12 Oct 2021 22:00:59 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maTZh-0007Sa-P7 for 50956@debbugs.gnu.org; Tue, 12 Oct 2021 22:00:58 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 6E744240027 for <50956@debbugs.gnu.org>; Wed, 13 Oct 2021 04:00:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634090451; bh=JH8sakxZTK0wQ8Oy0C8anuvzIF6Ga+2mU7ye15XFGKo=; h=From:To:Cc:Subject:Date:From; b=Ri2i8PTuNukZo5zvoi0mQNIJ8NgFHcgGnfN8+5Hwe6a5U4jcoadIvkYwcbeC+iWaF rHiFrtWv353L5eGO65/okWSb3tHss1GyZ9N4zsyhvUPk2UcY9PgLHin8j/2RWoGEwI rmFDZWB/DSSlGbm6dzV+lsDQv2aoIX/8/xC947oAcWHUPsRlbgY/MoO3RJbSesqyQe aLpo2YrAiuglhPAVKSgn7OgHzhJPqnUPp4m64PRAkQNkJdOu7e6pI0p5ee3DGfnP6r JwzbBkBhkbm044EqDMJYdoT0WDJF3wQQee3y6tl21ZuT+rViVd5mOZjgIYPf9zFZ5r VJA2C2/PBKSsw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HTbNL361dz9rxM; Wed, 13 Oct 2021 04:00:49 +0200 (CEST) From: Vinicius Monego Date: Wed, 13 Oct 2021 02:00:32 +0000 Message-Id: <20211013020035.53000-1-monego@posteo.net> MIME-Version: 1.0 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-scikit-optimize): New variable. --- scikit-optimize 0.9.0 was released today, added it as a patch in the series. gnu/packages/machine-learning.scm | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 029422677a..478e9548e9 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1218,6 +1218,44 @@ main intended application of Autograd is gradient-based optimization.") (define-public python2-autograd (package-with-python2 python-autograd)) +(define-public python-scikit-optimize + (package + (name "python-scikit-optimize") + (version "0.9.0") + (source + (origin + (method git-fetch) ; no tests in PyPI tarball + (uri (git-reference + (url "https://github.com/scikit-optimize/scikit-optimize") + (commit (string-append "v" version)))) + (sha256 + (base32 "0hsq6pmryimxc275yrcy4bv217bx7ma6rz0q6m4138bv4zgq18d1")) + (file-name (git-file-name name version)))) + (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"))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-joblib" ,python-joblib) + ("python-numpy" ,python-numpy) + ("python-pyaml" ,python-pyaml) + ("python-scikit-learn" ,python-scikit-learn) + ("python-scipy" ,python-scipy))) + (home-page "https://scikit-optimize.github.io/") + (synopsis "Sequential model-based optimization") + (description + "Scikit-Optimize, or @code{skopt}, is a library to minimize (very) +expensive and noisy black-box functions. It implements several methods +for sequential model-based optimization.") + (license license:bsd-3))) + (define-public lightgbm (package (name "lightgbm")