Skip to content

Improved logic to avoid single matrix exception error from gaussian_kde

The comparison statistics JS and KS tests are implemented using gaussian_kde. Built-in function gaussian_kde returns 'Singular Matrix' exception if a set of identical numbers is passed. Hence need to improve logic such that is posterior is a delta function, the comparison statistics are not evaluated.

Edited by Virginia d'Emilio

Merge request reports

Loading