starling.structure.bme_utils.BMEResult
- class BMEResult[source]
Bases:
objectContainer for BME optimization results.
Methods
Diagnose BME reweighting results and identify potential issues.
Print a formatted diagnostic report for this BME result.
Attributes
returns the KL divergence (relative entropy) from phi.
- observables: List[ExperimentalObservable]
- diagnostics(warn_threshold: float = 0.5) dict[source]
Diagnose BME reweighting results and identify potential issues.
- Returns:
Dictionary containing diagnostic information and warnings.
- Return type:
Notes
We report two notions of effective sample size:
neff_entropy (N_eff^(S)): entropy-based, derived from Φ = exp(-D_KL). This is the standard BME measure: N_eff^(S) = N * Φ.
neff_renyi2 (N_eff^(2)): 1 / sum_i w_i^2 (Rényi-2 / participation ratio). This is more sensitive to a few large weights, so it is always <= neff_entropy for the same weights.