diff options
Diffstat (limited to 'gnu/packages/statistics.scm')
-rw-r--r-- | gnu/packages/statistics.scm | 55 |
1 files changed, 51 insertions, 4 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index a8cfd9104a..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") @@ -3180,18 +3225,20 @@ files, including Rmarkdown files.") (license license:gpl3+))) (define-public readstat + (let ((commit "718d49155e327471ed9bf4a8c157f849f285b46c") + (revision "0")) (package (name "readstat") - (version "1.1.9") + (version (git-version "1.1.9" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/WizardMac/ReadStat") - (commit (string-append "v" version)))) + (commit commit))) (file-name (git-file-name name version)) (sha256 - (base32 "0aqalr86d7h9sp9zjkydw3ap4s54qgq2ml6p8gd0gnn1jf0ljm72")))) + (base32 "121axcx4shd0fqlcr1mk7y841sd59r9mx473c4av8gs81xfhcg0h")))) (build-system gnu-build-system) (native-inputs (list autoconf automake gettext-minimal libtool)) @@ -3201,7 +3248,7 @@ files, including Rmarkdown files.") (synopsis "Convert SAS, Stata, and SPSS files") (description "Command-line tool and C library for reading files from popular stats packages like SAS, Stata and SPSS.") - (license license:expat))) + (license license:expat)))) (define-public python-pyreadstat (package |