Reference#
Helpers#
|
Computes the Chebyshev center, that is the midpoint of a (non-unique) largest inscribed ball in the polytope defined by \(Ax \leq b\). |
|
Generate matrix A and vector b of the unit N-dimensional hypercube. |
|
Generate matrix A and vector b of the unit N-dimensional simplex. |
|
Checks whether the polytope given by Ax < b and optionally Sx=h has a solution x. |
|
runs multiphase sampling as suggested in https://drops.dagstuhl.de/opus/volltexte/2021/13820/pdf/LIPIcs-SoCG-2021-21.pdf limit_singular_value_ratio=2.3 |
|
Simplifies the polytope defined in the |
|
Birkhoff polytope helper that manages transformation of states and constraints |
|
Singleton for controlling PolyRound parameters for Linear Programming. |
Models#
Base model class. |
|
|
Gaussian model which can be invariant in some dimensions of the input vector. |
|
The |
A multi-dimensional Rosenbrock function in \(2n\) dimensions. |
Problem#
|
Rounds the polytope defined by the inequality \(Ax \leq b\) using PolyRound. |
|
Adds box constraints to all dimensions. |
|
Adds equality constraints as specified. |
|
Transforms samples back from the sampling space (typically rounded) to the original parameter space. |
|
Transforms samples from the parameter space to the sampling space (typically rounded). |
Proposals#
Interface for proposal mechanisms. |
|
Adaptive Metropolis Algorithm for convex polytopes, see https://doi.org/10.2307/3318737 for unconstrained version. |
|
This proposal is implemented for academic purpose and not recommended for production use, see https://doi.org/10.1007/s12532-015-0097-z for description. |
|
See https://doi.org/10.3182/20140824-6-ZA-1003.02312 for descrption. |
|
Do not use when fisher information is expensive for your model. |
|
Mix of https://doi.org/10.1093/bioinformatics/btx052 and https://deepblue.lib.umich.edu/bitstream/handle/2027.42/3513/bal7884.0001.001.pdf. |
|
Mix of https://doi.org/10.1093/bioinformatics/btx052 and https://deepblue.lib.umich.edu/bitstream/handle/2027.42/3513/bal7884.0001.001.pdf. |
|
Random walk with gaussian steps. |
|
This is the implementation of the algorithm described in https://pubmed.ncbi.nlm.nih.gov/31214716/. |
|
This is a gibbs sampler for constrained Gaussians, see https://doi.org/10.1093/bioinformatics/btz315. |
Random#
Sampling#
|
Given a hopsy.Problem a MarkovChain object can be constructed. |
|
|
|
Draw |
Diagnostics#
|
Calculate estimate of the effective sample size (ess). |
|
Calculate Markov Chain Standard Error statistic. |
|
Compute estimate of rank normalized splitR-hat for a set of traces. |
Tuning#
|
Thompson Sampling-based tuning method for specifying meaningful hyperparameters for Markov chain proposal distributions. |