Optimized Nested Sampling
Faster inference by parameter space reduction of linear parameters.
Context
For models that are composed of additive components:
y = A_1 * y_1(x|theta) + A_2 * y_2(x|theta) + ...
And data that are one of:
y_obs ~ Normal(y, sigma) y_obs ~ Poisson(y) y_obs ~ GP(y)
y may be one or multi-dimensional. sigma may be different for each y (heteroscadastic). GP may be a Gaussian process from celerite or george.
Here we see that each component y_i changes y linearly with its normalisation parameter A_i.
We therefore have two groups of parameters:
linear parameters: A_i
non-linear parameters: theta
We can define the predictive part of our model as:
y_1, y_2, ... = compute_components(x, theta)
What optns does
Profile likelihood inference with nested sampling. That means the normalisations are optimized away.
Post-processing: The full posterior (A_i and theta) is sampled by conditionally sampling A_i given theta.
Usage
See the demo scripts in the examples folder!
Metadata
Release files for optns 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| optns-2.1.1.tar.gz | 23.5 kB | Without provenance | Details for optns-2.1.1.tar.gz |
Release files / optns-2.1.1.tar.gz
| Download URL | optns-2.1.1.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf24aabbf45e4c5f091a29e2c6f0202155b1f52b49387e34ac872b0eb8054c50
|
|
BLAKE2b-256 checksum How to use checksums |
bf09bf46861f97c0fc00ffa52ebbb5e8a4090cd65fc510159c1dede522b54cf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for optns 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.