uvex_transients.phase_space.map#

The map: the data and the model of a phase-space recovery map, and the hook that chooses the next points.

A PhaseSpaceMap holds what has been measured so far, k successes of n tries at a set of points of a Space, and models the success fraction over the whole space with a Gaussian process. It does one thing beyond that, which is to say where the next measurements should be (PhaseSpaceMap.propose). It knows nothing about transients, surveys or how a point is measured: a point comes in as coordinates and counts, and the quantities derived from the fraction (volume-times, efficiencies, redshift limits) are made by Product objects that are handed the map’s estimate. The loop that evaluates the points the map asks for is not here either; see run_campaign().

The model is a Gaussian process on the logit of the success fraction, \(y_i=\mathrm{logit}\,\hat p_i\) with \(\hat p_i=(k_i+1/2)/(n_i+1)\), and a per-point noise variance \(1/[(n_i+1)\hat p_i(1-\hat p_i)]\) from the delta method (see binomial_logit()). It works on the unit cube of the space, so any number of axes will do.

The next points maximize an acquisition that is a function of the posterior only, never of an unseen outcome:

"variance"

\(w(\mathbf x)\,\sigma_g^2(\mathbf x)\), the posterior variance of \(\ln(p+\epsilon)\) by the delta method, with \(w=[p(1-p)/(p+\epsilon)]^2\). The floor \(\epsilon\) is the smallest recovery a single point can resolve, so effort is not spent separating a recovery of \(10^{-6}\) from zero.

"imse"

The reduction, from observing at the candidate, of that same weighted variance integrated over the whole space. It costs one covariance matrix per round and values a point by what it teaches about the whole map.

A batch is built greedily. After each pick the posterior covariance is updated as though the point had been measured (the variance does not depend on the outcome), so the points of a batch spread out and can be evaluated in parallel.

Classes

PhaseSpaceMap(space, *[, acquisition, ...])

The measured points of a map and the Gaussian process model of the success fraction over their space.