summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-03 17:14:40 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-31 22:13:40 +0100
commit120edb6b36cc65cefe0260211a910c769db7780a (patch)
tree6d4440849d4d7f1e701538f7d1bf4e4c535651a2
parente8b698242571edc603446dd9aaf443293f5bfa3b (diff)
gnu: Add python-nautilus-sampler.
* gnu/packages/statistics.scm (python-nautilus-sampler): New variable. Change-Id: Ic2881d9d26b02d7dd8ea03523a6a20195dd94727
-rw-r--r--gnu/packages/statistics.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 2e03750869..bcbd0f30f7 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -916,6 +916,51 @@ point (up to 50% contamination) and have a number of nice applications in
machine learning, computer vision, and high-dimensional statistics.")
(license license:asl2.0)))
+(define-public python-nautilus-sampler
+ (package
+ (name "python-nautilus-sampler")
+ (version "1.0.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "nautilus_sampler" version))
+ (sha256
+ (base32 "1b73rxg7b5fzpw4ss4py98xdxddkl1dh2dszp2pxv3y179iyniqj"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "--durations=0"
+ ;; One Dask test hangs.
+ "-k" "not test_pool[dask]")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _ (setenv "OMP_NUM_THREADS" "1"))))))
+ (native-inputs
+ (list python-dask
+ python-distributed
+ python-flit-core
+ python-h5py
+ python-pytest
+ python-pytest-xdist))
+ (propagated-inputs
+ (list python-numpy
+ python-scikit-learn
+ python-scipy
+ python-threadpoolctl))
+ (home-page "https://github.com/johannesulf/nautilus")
+ (synopsis "Neural Network-Boosted Importance Sampling for Bayesian Statistics")
+ (description
+ "Nautilus is an pure-Python package for Bayesian posterior and evidence
+estimation. It utilizes importance sampling and efficient space exploration
+using neural networks. Compared to traditional @acronym{MCMC, Markov chain
+Monte Carlo} and Nested Sampling codes, it often needs fewer likelihood calls
+and produces much larger posterior samples. Additionally, nautilus is highly
+accurate and produces Bayesian evidence estimates with percent precision. It
+is widely used in many areas of astrophysical research.")
+ (license license:expat)))
+
(define-public python-nestle
(package
(name "python-nestle")