Reference / binference.diagnostics.kkt_gap

binference.diagnostics.kkt_gap

binference.diagnostics.kkt_gap(model, value, include_prior=True)[source]

First-order optimality violation of a point estimate.

See binference.PopulationModel.kkt_gap().

Parameters:
modelPopulationModel

The model.

valuearray_like (K,)

Fractions or rates.

include_priorbool, optional

Include the prior’s pseudo-counts in the optimality conditions.