pymc icon indicating copy to clipboard operation
pymc copied to clipboard

Add jitter_scale parameter for initial point generation

Open aphc14 opened this issue 10 months ago • 1 comments

Description

Add jitter_scale parameter to control the bounds of uniform jitter in initial points. This allows users to adjust the width of random initialisation, which is useful for the Multi-path Pathfinder algorithm to explore posteriors in a larger parameter space or where the posterior mean is much further away from the prior mean.

Changes:

  • Add jitter_scale parameter (default=1.0) to initial point functions
  • Update jitter bounds from U(-1,1) to U(-jitter_scale, jitter_scale)
  • Add test_jitter_scale to verify scaling behaviour
  • Update docstrings to reflect new parameter

Related Issue

Checklist

Type of change

  • [x] New feature / enhancement
  • [ ] Bug fix
  • [ ] Documentation
  • [ ] Maintenance
  • [ ] Other (please specify):

📚 Documentation preview 📚: https://pymc--7643.org.readthedocs.build/en/7643/

aphc14 avatar Jan 13 '25 09:01 aphc14

Thank You Banner] :sparkling_heart: Thanks for opening this pull request! :sparkling_heart: The PyMC community really appreciates your time and effort to contribute to the project. Please make sure you have read our Contributing Guidelines and filled in our pull request template to the best of your ability.

welcome[bot] avatar Jan 13 '25 09:01 welcome[bot]