* [bug#49473] [PATCH] gnu: Add python-hyperopt.
@ 2021-07-08 23:20 Vinicius Monego
2021-07-25 16:00 ` bug#49473: " Mathieu Othacehe
0 siblings, 1 reply; 2+ messages in thread
From: Vinicius Monego @ 2021-07-08 23:20 UTC (permalink / raw)
To: 49473; +Cc: Vinicius Monego
* 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")
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#49473: [PATCH] gnu: Add python-hyperopt.
2021-07-08 23:20 [bug#49473] [PATCH] gnu: Add python-hyperopt Vinicius Monego
@ 2021-07-25 16:00 ` Mathieu Othacehe
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Othacehe @ 2021-07-25 16:00 UTC (permalink / raw)
To: Vinicius Monego; +Cc: 49473-done
Hey,
> * gnu/packages/machine-learning.scm (python-hyperopt): New variable.
I fixed the indentation and pushed.
Thanks,
Mathieu
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-25 16:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-08 23:20 [bug#49473] [PATCH] gnu: Add python-hyperopt Vinicius Monego
2021-07-25 16:00 ` bug#49473: " Mathieu Othacehe
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).