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
AMICA wrapper marks is_fitted_ even on a degenerate (nan_ll/singular_ll) fit #50
Surfaced during PR #49 review (silent-failure-hunter).
pyAMICA/amica.py's AMICA.fit() sets self.is_fitted_ = True unconditionally after self.model_.fit(...), regardless of self.model_.stop_reason. If a fit ends degenerate (stop_reason in nan_ll/singular_ll), transform()/fit_transform() will still run and return NaN sources with no exception and no wrapper-level surfacing (only a backend logger.warning several frames down).
This is pre-existing (not introduced by #49) and broader than the multi-model c update, but the n_models>1 feature makes it more reachable in ordinary use.
Scope:
After fit(), if stop_reason indicates degeneracy, either raise or expose it clearly (and/or refuse transform() on a degenerate model), consistent with state_dict() which already refuses to serialize such a model.
Decide the contract: hard error vs. a converged_/stop_reason_ attribute the caller must check.
Note: PR #49 added a containment guard so the per-model bias c can no longer go NaN from a dead model, which reduces (but does not remove) the ways a multi-model fit can end degenerate.
Activity
Address #51 review: degenerate final_ll_, n_kurt_done, tests
Refuse degenerate fits in the AMICA wrapper (#50)
Address #50 review: crash-safe fit(), real degenerate test
Return best iterate from AMICATorchNG.fit (#51) (#53)
Refuse degenerate fits in the AMICA wrapper (#50)
Address #50 review: crash-safe fit(), real degenerate test
Refuse degenerate fits in the AMICA wrapper (#50) (#55)
docs: consolidate dev docs into .context
docs: consolidate dev docs into .context (#58)
Fix silent-failure gaps in parity investigation scripts
Address JOSS reviewer feedback on paper and Figure 1 (#138)