Skip to content

feat(estimators): expose niter_broadprior on VBPCA constructor#96

Merged
jc-macdonald merged 1 commit into
mainfrom
feature/issue-51-expose-niter-broadprior
Apr 12, 2026
Merged

feat(estimators): expose niter_broadprior on VBPCA constructor#96
jc-macdonald merged 1 commit into
mainfrom
feature/issue-51-expose-niter-broadprior

Conversation

@jc-macdonald
Copy link
Copy Markdown
Collaborator

Closes #51

Summary

Adds niter_broadprior as a named keyword argument on VBPCA.__init__() so users can control the broad-prior warmup phase length directly, without passing it through **opts.

Changes

  • src/vbpca_py/estimators.py — Add niter_broadprior: int | None = None parameter to __init__, wire through fit() and get_options(). Documented in docstring.
  • tests/test_estimators.py — 3 new tests: stored value, default fallback to 100, lower value allows earlier convergence.

Backward compatible

Default is None → library default of 100 is used. No change for existing callers.

CI

434 tests pass, 90.04% coverage.

Add niter_broadprior as a named keyword argument on VBPCA.__init__()
so users can control the broad-prior warmup phase without resorting
to **opts.  Default remains 100 (backward compatible).

Wire the parameter through fit() and get_options().

- Add 3 tests: stored value, default fallback, iteration count effect

Closes #51
@jc-macdonald jc-macdonald self-assigned this Apr 12, 2026
@jc-macdonald jc-macdonald merged commit 2c979ed into main Apr 12, 2026
7 checks passed
@jc-macdonald jc-macdonald deleted the feature/issue-51-expose-niter-broadprior branch April 12, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose niter_broadprior as a configurable parameter

1 participant