You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Outlier rejection: distinguish non-finite per-sample LL from a too-aggressive rejsig #127
Found in the PR #126 review (silent-failure). In both backends' _reject_outliers, a single non-finite per-sample log-likelihood (e.g. a sample driving logdet_W or an activation to +/-inf from numerical instability) makes mean/std NaN, so keep = ll >= mean - rejsig*std is all-False and the guard raises:
Outlier rejection removed all N samples (rejsig=X too aggressive for this data).
That message blames the rejsig hyperparameter when the real cause is upstream numerical instability; a user raising rejsig in response won't fix anything.
Scope
Detect non-finite entries in the per-sample LL explicitly and raise a distinct, accurate error (e.g. "K samples have non-finite log-likelihood, indicating numerical instability (singular W / overflow), not a rejsig miscalibration") before the all-rejected check.
Fix both backends together to avoid cross-backend divergence:
pyAMICA/torch_impl/core.pyAMICATorchNG._reject_outliers (pre-existing; ll_vec.mean() with no NaN guard).
Not a regression from #123; the NumPy port faithfully reproduced the existing torch behavior. Low severity (needs a genuinely non-finite per-sample LL to trigger).
Activity
Reject: name non-finite LL vs rejsig in both backends (#127)
Reject: distinguish non-finite LL from too-aggressive rejsig (#127) (#…
Bump version to 0.1.2 (#131)