Skip to content

Expose initial broad prior value (va_init) as constructor parameter#97

Merged
jc-macdonald merged 4 commits into
mainfrom
feature/issue-94-va-init
Apr 13, 2026
Merged

Expose initial broad prior value (va_init) as constructor parameter#97
jc-macdonald merged 4 commits into
mainfrom
feature/issue-94-va-init

Conversation

@jc-macdonald
Copy link
Copy Markdown
Collaborator

Summary

Add va_init as an optional parameter on the VBPCA constructor, defaulting to 1000.0 (current behavior). This allows the convergence study (Phase 3a Morris screening) to sweep the initial broad prior value over a range (100–10,000).

Changes

  • _pca_full.py: Add "va_init": 1000.0 to _build_options defaults
  • _full_update.py: Replace hardcoded 1000.0 with opts.get("va_init", 1000.0) in _initialize_parameters
  • estimators.py: Add va_init parameter to __init__, thread through fit() and get_options()
  • test_estimators.py: Add 3 tests (default value, propagation, behavioral effect)

Validation

just ci passes (format, lint, typecheck, 90% coverage).

Closes #94

- Add va_init option to _build_options defaults (1000.0)
- Thread va_init through _initialize_parameters in _full_update.py
- Add va_init parameter to VBPCA.__init__, fit(), and get_options()
- Add tests for default, propagation, and behavioral effect

Closes #94
@jc-macdonald jc-macdonald self-assigned this Apr 13, 2026
@jc-macdonald jc-macdonald merged commit 169bcf6 into main Apr 13, 2026
7 checks passed
@jc-macdonald jc-macdonald deleted the feature/issue-94-va-init branch April 13, 2026 20:22
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 initial broad prior value (va_init) as constructor parameter

1 participant