Skip to main content

Faster inference by parameter space reduction of linear parameters.

https://img.shields.io/pypi/v/optns.svg https://github.com/JohannesBuchner/OptNS/actions/workflows/tests.yml/badge.svg https://coveralls.io/repos/github/JohannesBuchner/OptNS/badge.svg?branch=main Github repository

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

  1. Profile likelihood inference with nested sampling. That means the normalisations are optimized away.

  2. 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)

Source distribution for optns 2.1.1
File Size Uploaded
optns-2.1.1.tar.gz 23.5 kB Details

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

Release history Release notifications | RSS feed

This release

2.1.1 This release

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page