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 1/4] gnu: Add python-scikit-optimize.
Date: Wed, 13 Oct 2021 02:00:32 +0000	[thread overview]
Message-ID: <20211013020035.53000-1-monego@posteo.net> (raw)
In-Reply-To: <20211002033916.64690-1-monego@posteo.net>

* 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")
-- 
2.30.2





  parent reply	other threads:[~2021-10-13  2:01 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 ` Vinicius Monego [this message]
2021-10-13  2:00   ` [bug#50956] [PATCH v2 2/4] gnu: Add python-cma Vinicius Monego
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-1-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).