Repository navigation
Fixes from the ensemble-by-ensemble audit that change no output on any documented call path. Matrices for a given seed are identical to 0.2.0.
block_equicorrchecks positive semidefiniteness exactly. The old guard,rho_within >= rho_between, is necessary but not sufficient: withrho_between < 0it returned matrices with eigenvalues below -3 at the defaults, silently. The check now uses the exact spectrum of a block-equicorrelation matrix (the(1 - rho_within[b])eigenvalues plus the B x B reduced matrix), costs O(B^3), and raisesValueErrorwhen the matrix would not be PSD. Verified against dense eigendecomposition on 200 random parameter sets straddling the boundary. Default draws are bit-identical to 0.2.0.random_correlation_matrixno longer writes into the caller'scorr_kwargs(andrandom_covariance_matrix, which delegates to it, inherits the fix). It calledsetdefault("rng", rng)on the dict passed in, so a dict shared across calls kept the first call's seed and later calls with a differentrng=returned the same matrix.- Docstrings corrected:
kernel_corrno longer claims full rank (it is numerically singular from n of about 100 without a nugget) and says thatnu="rbf"is the default;wishart_corrreturns an ndarray with degrees of freedom fixed at 2n;factor_corrdocuments that the default geometricstrengthmakeskbeyond about 4 undetectable. - Two legacy
lkjtests that had been inverted to pass the pre-0.2.0 generator now test what their docstrings say.
Known and deferred until the paper's scale grid finishes, because each changes output for a given seed: animals uses the legacy global np.random.seed and gives different matrices for rng=7 and rng=np.random.default_rng(7); archakov_hansen's fixed point silently stops short of convergence for n above about 200; kernel_corr has no nugget.